English
Language : 

UPD784938 Datasheet, PDF (314/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 11 TIMER/EVENT COUNTER 2
(3) Capture/compare control register 2 (CRC2)
CRC2 specifies the enabling condition for a timer counter 2 (TM2/TM2W) clear operation by the capture/compare
register (CR21/CR21W) or the capture register (CR22/CR22W) and the timer output (TO2/TO3) mode.
CRC2 can be read or written with an 8-bit manipulation instruction. The format of CRC2 is shown in Figure 11-4.
RESET input sets CRC2 to 10H.
Figure 11-4. Capture/Compare Control Register 2 (CRC2) Format
7
6
5
4
3
2
1
CRC2 MOD1 MOD0 CLR22 1 CLR21 CM21 0
0 Address After reset R/W
0 0FF33H
10H
R/W
MOD1 MOD0 CLR22 CLR21 CM21
CR21
Operation
Specification
Timer Output
Mode Specification
TO2
TO3
TM2 Clear Operation
0
0
0
0
0 Compare
Toggle output Toggle output Not cleared
0
0
0
1
0
operations
Toggle output Toggle output Cleared if TM2 and
CR21 match
0
0
1
0
0
Toggle output Toggle output Cleared after TM2
contents are captured
in CR22 by INTP1
0
0
1
1
0
Toggle output
Toggle output
Cleared by match of
TM2 and CR21 or after
TM2 contents are
captured in CR22 by
INTP1
0
1
0
0
0
PWM output Toggle output Not cleared
1
0
0
0
0
1
1
0
1
0
PWM output PWM output Not cleared
PPG output Toggle output Cleared if TM2 and
CR21 match
0
0
0
0
1 Capture
Toggle output
operations
0
0
0
1
1
Toggle output
Not cleared
Cleared after TM2
contents are captured
in CR21 by INTP2
0
1
0
0
1
PWM output
Not cleared
Other than the above
Setting prohibited
Remark The register names in the 8-bit operation mode are shown in this figure. In the 16-bit operation mode, the
register names TM2, CR20, CR21, and CR22 are TM2W, CR20W, CR21W, and CR22W, respectively.
314
Preliminary User’s Manual U13987EJ1V0UM00