C2K User’s Guide
5-44
Resources
Counter Current Value Registers
The Counter Current Value High/Low registers provides 32-bit current count value of a given
counter/timer. Reading the Counter Current Value High Register captures the 32-bit current count
value into the Counter Current Value High and Counter Current Value Low registers. The 16
uppermost counter bits are read from the High register. A subsequent read from the Low register
provides the lower 16 bits of the captured counter value.
Counter Preload Value Registers
The Counter Preload Value High/Low registers allow the counters to be preloaded to a specific
count value. To write the 32-bit preload value, a write must be performed to the Counter Preload
Value High Register, then the Counter Preload Value Low Register. The write to the Low register
will transfer the full 32-bit value into the internal preload register.
Reading the Counter Preload Value High Register captures the 32-bit current count value into the
Counter Preload Value High and Counter Preload Value Low registers. The 16 uppermost counter
bits are read from the High register. A subsequent read from the Low register provides the lower
16 bits of the preload value.
0
CNTR0_INT_STAT
-
Counter 0 Interrupt Status—provides current interrupt status
for counter 0.
0 = interrupt is de-asserted
1 = interrupt is asserted
Address offset:
0x200, 0x204, ... 0x23C
Access:
Read-only
Bits
Field
Default
Description
15 - 0
CNTR_CURRENT_HIGH
-
Counter Current High Value—upper 16 bits of 32-bit
counter/timer current value
Address offset:
0x202, 0x206, ... 0x23E
Access:
Read-only
Bits
Field
Default
Description
15 - 0
CNTR_CURRENT_LOW
-
Counter Current Low Value—lower 16 bits of 32-bit
counter/timer current value
Address offset:
0x240, 0x244, ... 0x27C
Access:
Read/write
Bits
Field
Default
Description
15 - 0
CNTR_PRELOAD_HIGH
0xFF
Counter Preload High Value—upper 16 bits of 32-bit
counter/timer preload value
Address offset:
0x242, 0x246, ... 0x27E
Access:
Read/write
Bits
Field
Default
Description
15 - 0
CNTR_PRELOAD_LOW
0xFF
Counter Preload Low Value—lower 16 bits of 32-bit
counter/timer preload value
Bits
Field
Default
Description
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com