CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01
User’s Manual U16899EJ2V0UD
166
Figure 6-29. Control Register Settings for Pulse Width Measurement by Means of Restart
(with Rising Edge Specified)
(a) 16-bit timer mode control register 0n (TMC0n)
7
0
6
0
5
0
4
0
TMC0n3
1
TMC0n2
0
TMC0n1
0/1
OVF0n
0
TMC0n
Clears and starts at valid edge of TI00n pin.
(b) Capture/compare control register 0n (CRC0n)
7
0
6
0
5
0
4
0
3
0
CRC0n2
1
CRC0n1
1
CRC00n
1
CRC0n
CR00n used as capture register
Captures to CR00n at inverse edge to valid edge of TI00n.
CR01n used as capture register
(c) Prescaler mode register 0n (PRM0n)
ES1n1
0/1
ES1n0
0/1
ES0n1
0
ES0n0
1
3
0
2
0
PRM0n1
0/1
PRM0n0
0/1
PRM0n
Selects count clock (setting “11” is prohibited).
Specifies rising edge for pulse width detection.
Setting invalid (setting “10” is prohibited.)
Figure 6-30. Timing of Pulse Width Measurement Operation by Means of Restart (with Rising Edge Specified)
t
0000H
0001H
0000H
0001H
0000H 0001H
D0
D0
INTTM01n
D1
×
t
D2
×
t
D2
D1
D2
D1
CR00n capture value
Count clock
TM0n count value
TI00n pin input
CR01n capture value
Remark n = 0:
µ
PD78F0132H
n = 0, 1:
µ
PD78F0133H, 78F0134H, 78F0136H, 78F0138H, 78F0138HD
Содержание MuPD78F0132H
Страница 2: ...User s Manual U16899EJ2V0UD 2 MEMO ...