KS57C2308/P2308/C2316/P2316
TIMERS and TIMER/COUNTERS
11-19
TC0 COUNTER REGISTER (TCNT0)
The 8-bit counter register for timer/counter 0, TCNT0, is read-only and can be addressed by 8-bit RAM control
instructions.
RESET
sets all TCNT0 register values to logic zero (00H).
Whenever TMOD0.3 is enabled, TCNT0 is cleared to logic zero and counting resumes. TCNT0 register value is
incremented at the selected edge each time an incoming pulse with reference clock specified by TMOD0 register
(specifically, TMOD0.6, TMOD0.5, and TMOD0.4) is input.
Each time TCNT0 is incremented, the new value is compared with the reference value stored in the TC0
reference buffer, TREF0. When TCNT0 = TREF0, an match signal occurs in the comparator, the interrupt
request flag, IRQT0, is set to logic one, and an interrupt request is generated to indicate that the specified
timer/counter interval has elapsed.
COUNT
CLOCK
TCNT0
TOL0
TIMER START INSTRUCTION
(TMOD0.3 IS SET)
TREF0
REFERENCE VALUE = n
0
1
2
n-1
n
0
1
2
n-1
0
1
2
n
INTERVAL TIME
IRQT0 SET
IRQT0 SET
MATCH
MATCH
3
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
~ ~
Figure 11-3. TC0 Timing Diagram
Содержание C2316
Страница 30: ...ADDRESS SPACES KS57C2308 P2308 C2316 P2316 2 22 NOTES ...
Страница 168: ...SAM47 INSTRUCTION SET KS57C2308 P2308 C2316 P2316 5 94 NOTES ...
Страница 170: ......
Страница 206: ...POWER DOWN KS57C2308 P2308 C2316 P2316 8 8 NOTES ...
Страница 210: ...RESET KS57C2308 P2308 C2316 P2316 9 4 NOTES ...
Страница 222: ...I O PORTS KS57C2308 P2308 C2316 P2316 10 12 NOTES ...
Страница 272: ...LCD CONTROLLER DRIVER KS57C2308 P2308 C2316 P2316 12 24 NOTES ...
Страница 280: ...SERIAL I O INTERFACE KS57C2308 P2308 C2316 P2316 13 8 NOTES ...
Страница 294: ...MECHANICAL DATA KS57C2308 P2308 C2316 P2316 15 2 NOTES ...
Страница 310: ...KS57P2308 P2316 OTP KS57C2308 P2308 C2316 P2316 16 16 NOTES ...
Страница 318: ......
Страница 320: ......
Страница 322: ......
Страница 325: ......
Страница 327: ......