
122
CHAPTER 6
16-BIT TIMER/EVENT COUNTER 0
User’s Manual U12790EJ2V0UD
Table 6-2. CR00 Capture Trigger and Valid Edges of TI00 and TI01 Pins
(1) TI00 pin valid edge selected as capture trigger (CRC01 = 1, CRC00 = 1)
CR00 Capture Trigger
TI00 Pin Valid Edge
ES01
ES00
Falling edge
Rising edge
0
1
Rising edge
Falling edge
0
No capture operation
Both rising and falling edges
1
(2) TI01 pin valid edge selected as capture trigger (CRC01 = 0, CRC00 = 1)
CR00 Capture Trigger
TI01 Pin Valid Edge
ES11
ES10
Falling edge
0
Rising edge
0
1
Both rising and falling edges
1
Remarks 1. Setting ES01, ES00 = 1, 0 and ES11, ES10 = 1, 0 is prohibited.
2. ES01, ES00:
Bits 5 and 4 of prescaler mode register 0 (PRM0)
ES11, ES10:
Bits 7 and 6 of prescaler mode register 0 (PRM0)
CRC01, CRC00: Bits 1 and 0 of capture/compare control register 0 (CRC0)
CR00 is set by a 16-bit memory manipulation instruction.
CR00 is undefined after reset.
Cautions 1. Set CR00 to a value other than 0000H in the clear & start mode entered on a match between
TM0 and CR00. However, in the free-running mode and in the clear mode using the valid
edge of TI00, if CR00 is set to 0000H, an interrupt request (INTTM00) is generated when
CR00n changes from 0000H to 0001H following overflow (FFFFH).
2. If the new value of CR00 is less than the value of 16-bit timer counter 0 (TM0), TM0 continues
counting, overflows, and then starts counting from 0 again. If the new value of CR00 is less
than the old value, therefore, the timer must be reset and restarted after the value of CR00
is changed.
3. CR00 does not generate an interrupt request if it is captured at the valid edge of the TI00
pin.
4. Do not select the TI00 valid edge as the count clock when using TI00 as a capture trigger.
(3) 16-bit capture/compare register 01 (CR01)
This is a 16-bit register with both the functions of a capture register and a compare register. Whether CR01
is used as a capture register or a compare register is specified by using bit 2 (CRC02) of capture/compare
control register 0.
When CR01 is used as compare register
The value set to CR01 is always compared with the count value of 16-bit timer counter 0 (TM0). When
the two values match, an interrupt request (INTTM01) is generated.