This site is no longer active and is available for archival purposes only. Registration and login is disabled.

How to read the clock counter (CCNT) of PXA270 processor?


How to read the clock counter (CCNT) of PXA270 processor?

Postby flashyou » Mar 27, 2006 @ 2:11pm

I'm writing a small assembly routine to read the clock counter (CCNT) from
my Pocket PC (PXA270 processor).

I used the following assembly code:
MRC p14, 0, R0, c1, c1, 0

Unfortunately, all I got was a constant number (86334131) while it
was supposed to change over time.

What's wrong? Please help me.
flashyou
pm Member
 
Posts: 8
Joined: Feb 26, 2006 @ 10:54am


Postby refractor » Mar 27, 2006 @ 5:13pm

How have you configured the PMNC register? If you haven't configured it then the clock counter is probably not turned on and you need to set the bottom bit of the PMNC register.

Look at chapter 8 (especially page 104) of <a href="ftp://download.intel.com/design/intelxscale/27347302.pdf">this</a>.
User avatar
refractor
pm Insider
 
Posts: 2304
Joined: Feb 5, 2002 @ 1:12pm
Location: Luxembourg


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron