153
Chapter 7 Timer/Counter Units
7
Fig. 7-57 Setting Procedure for Interval Timer Operation (1)
Fig. 7-58 Interrupt Request Handling for Interval Timer Operation (1)
(2) Interval timer operation (2)
Eight-bit timer/counter 1 can be used as an interval timer that generates an interrupt at intervals of a count
time specified beforehand. (See
Fig. 7-59
.)
Fig. 7-60 shows the setting of control registers, and Fig. 7-61 shows the setting procedure.
Interval timer (1)
Set count value in CR10 register
Set CRC1 register
Start counting
; Sets bit 3 of TMC1 to 1
INTC10 interrupt
CE1
←
1
CRC1
←
00H
CR10
←
n
Set PRM1 register
INTC10 interrupt
Other interrupt program
CR10
←
CR10 + n
RETI
Calculation of timer value at
which next interrupt is to occur
Содержание PD78212
Страница 11: ......
Страница 53: ...24 ...
Страница 61: ...32 µPD78214 Sub Series 9 VSS Ground 10 NC non connection Not connected inside the chip ...
Страница 65: ...36 ...
Страница 83: ...54 ...
Страница 135: ...106 ...
Страница 271: ...242 ...
Страница 405: ...376 ...
Страница 417: ...388 ...
Страница 423: ...394 ...
Страница 449: ...420 ...
Страница 457: ...428 ...
Страница 471: ...442 ...
Страница 487: ...458 ...