109
CHAPTER 6 16-BIT TIMER 0 TM0
Preliminary User’s Manual U14581EJ3V0UM00
(2) Measurement of three pulse widths with free-running counter
The 16-bit timer register (TM0) allows simultaneous measurement of the pulse widths of the three signals input
to the TI00/P40 to TI02/P42 pins.
When the edge specified by bits 2 and 3 (ES00 and ES01) of prescaler mode register (PRM0) is input to the
TI00/P40 pin, the value of TM0 is taken into 16-bit capture register 00 (CR00) and an external interrupt request
signal (INTTM00) is set.
Also, when the edge specified by bits 4 and 5 (ES10 and ES11) of PRM0 is input to the TI01/P41 pin, the value
of TM0 is taken into 16-bit capture register 01 (CR01) and an external interrupt request signal (INTTM01) is set.
When the edge specified by bits 6 and 7 (ES20 and ES21) of PRM0 is input to the TI02/P42 pin, the value of
TM0 is taken into 16-bit capture register 02 (CR02) and external interrupt request signal (INTTM02) is set.
Any of three edge specifications can be selected—rising, falling, or both edges—as the valid edges for the TI00/
P40 to TI02/P42 pins by means of bits 2 and 3 (ES00 and ES01), bits 4 and 5 (ES10 and ES11), and bits 6 and
7 (ES20 and ES21) of PRM0, respectively.
For TI00/P40 to TI02/P42 pins valid edge detection, sampling is performed at the interval selected by means
of PRM0, and a capture operation is only performed when a valid level is detected twice, thus eliminating noise
with a short pulse width.
• Capture operation (free-running mode)
Capture register operation in capture trigger input is shown.
Figure 6-8. CR0m Capture Operation with Rising Edge Specified
Count clock
TM0
TI0m
Rising edge detection
CR0m
INTTM0m
n – 3
n – 2
n – 1
n
n + 1
n
Remark
m = 0 to 2
Содержание mPD780852 Series
Страница 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO...
Страница 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO...