CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01
User’s Manual U16899EJ2V0UD
140
Table 6-2. CR00n Capture Trigger and Valid Edges of TI00n and TI01n Pins
(1) TI00n pin valid edge selected as capture trigger (CRC0n1 = 1, CRC0n0 = 1)
TI00n Pin Valid Edge
CR00n Capture Trigger
ES0n1
ES0n0
Falling edge
Rising edge
0
1
Rising edge
Falling edge
0
0
No capture operation
Both rising and falling edges
1
1
(2) TI01n pin valid edge selected as capture trigger (CRC0n1 = 0, CRC0n0 = 1)
TI01n Pin Valid Edge
CR00n Capture Trigger
ES1n1
ES1n0
Falling edge
Falling edge
0
0
Rising edge
Rising edge
0
1
Both rising and falling edges
Both rising and falling edges
1
1
Remarks 1. Setting ES0n1, ES0n0 = 1, 0 and ES1n1, ES1n0 = 1, 0 is prohibited.
2.
ES0n1, ES0n0:
Bits 5 and 4 of prescaler mode register 0n (PRM0n)
ES1n1, ES1n0:
Bits 7 and 6 of prescaler mode register 0n (PRM0n)
CRC0n1, CRC0n0: Bits 1 and 0 of capture/compare control register 0n (CRC0n)
3. n = 0:
µ
PD78F0132H
n = 0, 1:
µ
PD78F0133H, 78F0134H, 78F0136H, 78F0138H, 78F0138HD
Cautions 1. Set a value other than 0000H in CR00n in the mode in which clear & start occurs on a match
of TM0n and CR00n.
2. If CR00n is cleared to 0000H in the free-running mode and in the clear mode using the valid
edge of the TI00n pin, an interrupt request (INTTM00n) is generated when the value of
CR00n changes from 0000H to 0001H following TM0n overflow (FFFFH). In addition,
INTTM00n is generated after a match between TM0n and CR00n, after detecting the valid
edge of the TI01n pin, or the timer is cleared by a one-shot trigger.
3. When the valid edge of the TI01n pin is used, P01 or P06 cannot be used as the timer output
pin (TO0n). When P01 or P06 is used as the TO0n pin, the valid edge of the TI01n pin
cannot be used.
4. When CR00n is used as a capture register, read data is undefined if the register read time
and capture trigger input conflict (the capture data itself is the correct value). If a timer
count stop and a capture trigger input conflict, the captured data is undefined.
5. Do not rewrite CR00n during TM0n operation.