English
Language : 

UPD780138 Datasheet, PDF (173/558 Pages) NEC – 8-Bit Single-Chip Microcontrollers
CHAPTER 6 16-BIT TIMER/EVENT COUNTERS 00 AND 01
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
6
5
4 TMC0n3 TMC0n2 TMC0n1 OVF0n
TMC0n 0
0
0
0
1
0 0/1 0
Clears and starts at valid edge of TI00n pin.
(b) Capture/compare control register 0n (CRC0n)
7
6
5
4
3 CRC0n2 CRC0n1 CRC00n
CRC0n 0
0
0
0
0
1
1
1
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 ES1n0 ES0n1 ES0n0 3
PRM0n 0/1 0/1 0
1
0
2 PRM0n1 PRM0n0
0 0/1 0/1
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
Count clock
TM0n count value
TI00n pin input
0000H 0001H
D0 0000H 0001H D1
D2 0000H 0001H
CR01n capture value
D0
D2
CR00n capture value
D1
INTTM01n
D1 × t
Remark
D2 × t
n = 0: µPD780131, 780132
n = 0, 1: µPD780133, 780134, 78F0134, 780136, 780138, 78F0138
User’s Manual U16228EJ2V0UD
173