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
Summary of Contents for mPD780851
Page 2: ...2 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 8: ...8 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 12: ...12 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 26: ...26 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 46: ...46 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 74: ...74 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 90: ...90 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 100: ...100 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 136: ...136 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 142: ...142 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 186: ...186 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 222: ...222 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 230: ...230 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 240: ...240 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 262: ...262 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 296: ...296 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 304: ...304 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...
Page 314: ...314 Preliminary User s Manual U14581EJ3V0UM00 MEMO ...