117
CHAPTER 7 16-BIT TIMER/EVENT COUNTER
User
’
s Manual U15017EJ2V0UD
Table 7-3. Valid Edge of TIO51 Pin and Valid Edge of Capture Trigger of CR00
ES11
ES10
Valid Edge of TIO51 Pin
Capture Trigger of CR00
0
0
Falling edge
Falling edge
0
1
Rising edge
Rising edge
1
0
Setting prohibited
Setting prohibited
1
1
Both rising and falling edges
Both rising and falling edges
CR00 is set using a 16-bit memory manipulation instruction.
RESET input sets CR00 to 0000H.
Caution Set CR00 to the value other than 0000H. When using the register as an event counter, a count
for one-pulse can not be operated.
(3) 16-bit capture/compare register 01 (CR01)
This is a 16-bit register that can be used as a capture register and a compare register. Whether it is used as
a capture register or compare register is specified by bit 2 (CRC02) of the capture/compare control register 0.
When using CR01 as compare register
The value set to CR01 is always compared with the count value of 16-bit timer counter 0 (TM0). When the
values of the two match, an interrupt request (INTTM01) is generated.
When using CR01 as capture register
The valid edge of the TI00 pin can be selected as a capture trigger. The valid edge of TI00 is set by prescaler
mode register 0 (PRM0).
Table 7-4 shows the valid edges of the TI00 pin that apply when capture triggers are specified.
Table 7-4. Valid Edge of Pin TI00 and Valid Edge of Capture Trigger of CR01
ES01
ES00
Valid Edge of TI00 Pin
Capture Trigger of CR01
0
0
Falling edge
Falling edge
0
1
Rising edge
Rising edge
1
0
Setting prohibited
Setting prohibited
1
1
Both rising and falling edges
Both rising and falling edges
CR01 is set using a 16-bit memory manipulation instruction.
RESET input sets CR01 to 0000H.
Caution Set CR01 to the value other than 0000H. When using an event counter, a count for one-pulse
can not be operated.