English
Language : 

UPD784938 Datasheet, PDF (297/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 10 TIMER/EVENT COUNTER 1
Figure 10-24. Control Register Settings for Interval Timer Operation (2)
(a) Prescaler mode register 1 (PRM1)
7
6
5
4
3
2
1
0
PRM1 ×
×
×
× PRS13 PRS12 PRS11 PRS10
Count clock specification
(x/fXX ; x = 4, 8, 16, 32, 64, 128,
256, 512, 1,024)
(b) Capture/compare control register 1 (CRC1)
7
6
5
4
3
2
1
0
CRC1 0
0
0
0
1
0
0
0
TM1 clearing by match of CR10 & TM1
contents disabled
CR11 specified as compare operation
TM1 clearing by match of CR11 & TM1
contents enabled
Figure 10-25. Interval Timer Operation (2) Setting Procedure
Interval timer (2)
Set PRM1
Set count value in CR11
CR11 ← n
Set CRC1
CRC1 ← 08H
Start count
CE1 ← 1
; Set 1 in bit 3 of TMC1
INTC11 interrupt
Preliminary User’s Manual U13987EJ1V0UM00
297