CHAPTER 7 16-BIT TIMER/EVENT COUNTER 0
User’s Manual U16896EJ2V0UD
279
7.4.8 Pulse width measurement operation
The TM01 register can be used to measure the pulse width of the signal input to the TI010 and TI011 pins.
Measurement can be accomplished by operating the 16-bit timer/event counter 01 in the free-running timer mode
or by restarting the timer in synchronization with the signal input to the TI010 pin.
When an interrupt is generated, read the value of the valid capture register and measure the pulse width. Check
the TMC01.OVF01 flag. If it is set (to 1), clear it to 0 by software.
Figure 7-37. Block Diagram of Pulse Width Measurement (Free-Running Timer Mode)
16-bit counter
(TM01)
Capture register
(CR010)
Capture
signal
Capture signal
Interrupt signal
(INTTM011)
Interrupt signal
(INTTM010)
Capture register
(CR011)
Operable bits
TMC013, TMC012
Count clock
Edge
detection
TI010 pin
Edge
detection
TI011 pin
Selector
Figure 7-38. Block Diagram of Pulse Width Measurement
(Clear & Start Mode Entered by TI010 Pin Valid Edge Input)
16-bit counter
(TM01)
Capture register
(CR010)
Capture
signal
Capture signal
Interrupt signal
(INTTM011)
Interrupt signal
(INTTM010)
Capture register
(CR011)
Operable bits
TMC013, TMC012
Count clock
Edge
detection
TI010 pin
Edge
detection
TI011 pin
Clear
Selector
Содержание V850ES/KE1+
Страница 2: ...User s Manual U16896EJ2V0UD 2 MEMO...