191
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
0
0
0
0
0
0/1
0/1
0
CRC02 CRC01 CRC00
CRC0
CR00 set as compare register
8.5 16-Bit Timer/Event Counter Operations
8.5.1 Interval timer operations
Setting the 16-bit timer mode control register (TMC0) and capture/compare control register 0 (CRC0) as shown
in Figure 8-10 allows operation as an interval timer. Interrupt requests are generated repeatedly using the count value
set in 16-bit capture/compare register 00 (CR00) beforehand as the interval.
When the count value of the 16-bit timer register (TM0) matches the value set to CR00, counting continues with
the TM0 value cleared to 0 and the interrupt request signal (INTTM00) is generated.
Count clock of the 16-bit timer/event counter can be selected with bits 4 to 6 (TCL04 to TCL06) of the timer clock
select register 0 (TCL0).
For the operation when the value of the compare register is changed during the timer count operation, refer to
8.6 16-Bit Timer/Event Counter Precautions (3).
Figure 8-10. Control Register Settings for Interval Timer Operation
(a) 16-bit timer mode control register (TMC0)
(b) Capture/compare control register 0 (CRC0)
Remark 0/1 : Setting 0 or 1 allows another function to be used simultaneously with the interval timer. See
the description of the respective control registers for details.
0
0
0
0
1
1
0/1
0
TMC03 TMC02 TMC01 OVF0
TMC0
Clear & start on match TM0 and CR00
Содержание PD78052
Страница 2: ...2 MEMO ...
Страница 8: ...8 MEMO ...
Страница 16: ...16 MEMO ...
Страница 36: ...36 MEMO ...
Страница 158: ...158 MEMO ...
Страница 174: ...174 MEMO ...
Страница 240: ...240 MEMO ...
Страница 260: ...260 MEMO ...
Страница 340: ...340 MEMO ...
Страница 392: ...392 MEMO ...
Страница 438: ...438 MEMO ...
Страница 482: ...482 CHAPTER 20 REAL TIME OUTPUT PORT MEMO ...
Страница 510: ...510 MEMO ...
Страница 524: ...524 MEMO ...
Страница 560: ...560 MEMO ...
Страница 576: ...576 MEMO ...
Страница 598: ...598 MEMO ...
Страница 602: ...602 MEMO ...