![NEC V850/SC1 User Manual Download Page 264](http://html.mh-extra.com/html/nec/v850-sc1/v850-sc1_user-manual_248178264.webp)
CHAPTER 8 TIMER/COUNTER FUNCTION
262
User’s Manual U15109EJ3V0UD
(2) Capture/compare control registers 0, 1, 7 to 12 (CRC0, CRC1, CRC7 to CRC12)
CRCn controls the operation of capture/compare register n (CRn0 and CRn1).
CRCn is set by an 8-bit or 1-bit memory manipulation instruction.
RESET input clears CRC0, CRC1, and CRC7 to CRC12 to 00H.
After reset: 00H R/W
Address: CRC0: FFFFF20AH
CRC1: FFFFF21AH
CRC7: FFFFF3AAH
CRC8: FFFFF39AH
CRC9: FFFFF3BAH
CRC10: FFFFF0DAH
CRC11: FFFFF0EAH CRC12: FFFFF0FAH
7
6
5
4
3
2
1
0
CRCn
0
0
0
0
0
CRCn2
CRCn1
CRCn0
(n = 0, 1, 7 to 12)
CRCn2
Selects operation mode of CRn1
0
Operates as compare register
1
Operates as capture register
CRCn1
Selects capture trigger of CRn0
0
Captured at valid edge of TIn1
1
Captured in reverse phase of valid edge of TIn0
CRCn0
Selects operation mode of CRn0
0
Operates as compare register
1
Operates as capture register
Cautions 1. Before setting CRCn, be sure to stop the timer operation.
2.
When the mode in which the timer is cleared and started on a match between TMn and
CRn0 is selected by 16-bit timer mode control register n (TMCn), do not specify CRn0 as a
capture register.
3.
When both the rising edge and falling edge are specified for the TIn0 valid edge, the capture
operation does not work.
4.
For the capture trigger, a pulse longer than twice the count clock selected by prescaler
mode registers 0n, 1n (PRM0n, PRM1n) is required for the signals from TIn0 and T2n1 to
perform the capture operation correctly.
5.
Always set bits 7 to 3 to 0.
(3) 16-bit timer output control registers 0, 1, 7 to 12 (TOC0, TOC1, TOC7 to TOC12)
TOCn controls the operation of the timer n output controller by setting or resetting the R-S flip-flop (LV0),
enabling or disabling reverse output, enabling or disabling output of timer n, enabling or disabling one-shot pulse
output operation, and selecting an output trigger for a one-shot pulse by software.
TOCn is set by an 8-bit or 1-bit memory manipulation instruction.
RESET input clears TOC0, TOC1, and TOC7 to TOC12 to 00H.