English
Language : 

UPD784938 Datasheet, PDF (253/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 9 TIMER/EVENT COUNTER 0
Figure 9-31. Control Register Settings for Interval Timer Operation (1)
Capture/compare control register 0 (CRC0)
7
6
5
4
3
2
1
0
CRC0 0
0
0
1
0
0
0
0
TM0 clearing disabled
TO0 & TO1 both toggle outputs
Figure 9-32. Interval Timer Operation (1) Setting Procedure
Interval timer (1)
Set count value in CR00
CR00 ← n
Set CRC0
CRC0 ← 10H
Start count
CE0 ← 1
; Set 1 in bit 3 of TMC0
INTC00 interrupt
Figure 9-33. Interval Timer Operation (1) Interrupt Request Servicing
INTC00 interrupt
Calculate timer value that will
generate next interrupt
CR00 ← CR00+n
Other interrupt service program
RETI
Preliminary User’s Manual U13987EJ1V0UM00
253