
CHAPTER 7 16-BIT TIMER/EVENT COUNTERS 00 TO 05
User
’
s Manual U15862EJ3V0UD
310
(2) Capture/compare control register 0n (CRC0n)
CRC0n controls the operation of 16-bit timer capture/compare registers 0n0 and 0n1 (CR0n0 and CRC0n1).
The CRC0n register is set by an 8-bit or 1-bit memory manipulation instruction.
RESET input clears CRC0n to 00H.
7
0
Operation as compare register
Operation as capture register
CRC0n2
0
1
Selection of operation mode of CR0n1 register
CRC0n
6
0
5
0
4
0
3
0
2
CRC0n2
1
CRC0n1
0
CRC0n0
After reset: 00H R/W Address: FFFFF608H, FFFFF618H, FFFFF628H
FFFFF638H, FFFFF648H, FFFFF658H
Capture at valid edge of TI0n1
Capture at inverse phase of valid edge of TI0n0
CRC0n1
0
1
Selection of capture trigger of CR0n0 register
Operation as compare register
Operation as capture register
CRC0n0
0
1
Selection of operation mode of CR0n0 register
(n = 0 to 5)
Cautions 1. Before setting the CRC0n register, be sure to stop the timer operation.
2. When the mode in which the timer is cleared and started upon match of the TM0n
register and CR0n0 register is selected by 16-bit timer mode control register 0n
(TMC0n), do not specify the CR0n0 register as the capture register.
3. When both the rising and falling edges are specified for the TI0n0 valid edge, capture
operation is not performed.
4. To ensure reliable capture operation, a pulse longer than two of the count clocks
selected by prescaler mode register 0n (PRM0n) is required.
Remark
TI0n0, TI0n1: Input pins of 16-bit timer/event counter 0n.
(3) 16-bit timer output control register 0n (TOC0n)
TOC0n controls the operation of the 16-bit timer/event counter 0n output controller by setting or resetting the
R-S flip-flop (LV0n), enabling or disabling inverse output, enabling or disabling the timer of 16-bit timer/event
counter 0n, enabling or disabling the one-shot pulse output operation, and selecting an output trigger for a
one-shot pulse by software (16-bit timer/event counters 02 and 03 do not have a one-shot pulse output
function).
The TOC0n register is set by an 8-bit memory manipulation instruction.
RESET input clears TOC0n to 00H.