NEC 78014Y Series User Manual page 192

8-bit single-chip microcontrollers
Table of Contents

Advertisement

(2) Pulse width measurement by means of restart
When input of a valid edge to the INTP0/P00/TI0 pin is detected, the count value of the 16-bit timer register (TM0)
is taken into the 16-bit capture register (CR01), and then the pulse width of the signal input to the INTP0/P00/
TI0 pin is measured by clearing TM0 and restarting the count.
The edge specification can be selected from three types, rising, falling, and both edges by bit 2 and bit 3 (ES10
and ES11) of the external interrupt mode register (INTM0).
In a valid edge detection, the sampling is performed by a cycle selected by the sampling clock select register
(SCS), and a capture operation is not performed before detecting valid levels twice allowing short pulse width
noise to be eliminated.
Figure 8-16.
Count Clock
TM0 Count Value
TI0 Pin Input
CR01 Captured Value
www.DataSheet4U.com
192
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
Timing of Pulse Width Measurement Operation by Means of Restart
(with Both Edges Specified)
t
0000 0001
INTP0
(D0 + 1) × t
D0
0000
0001
D0
(D1 + 1) × t
D1
0000
0001
D1

Advertisement

Table of Contents
loading

Table of Contents