English
Language : 

UPD78F0411GA-GAM-AX Datasheet, PDF (200/564 Pages) Renesas Technology Corp – Old Company Name in Catalogs and Other Documents
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
6.4.8 Pulse width measurement operation
TM00 can be used to measure the pulse width of the signal input to the TI000 and TI010 pins.
Measurement can be accomplished by operating the 16-bit timer/event counter 00 in the free-running timer mode
or by restarting the timer in synchronization with the signal input to the TI000 pin.
When an interrupt is generated, read the value of the valid capture register and measure the pulse width. Check
bit 0 (OVF00) of 16-bit timer mode control register 00 (TMC00). If it is set (to 1), clear it to 0 by software.
Figure 6-47. Block Diagram of Pulse Width Measurement (Free-Running Timer Mode)
Operable bits
TMC003, TMC002
Count clock
Timer counter
(TM00)
Capture signal
Capture register
(CR010)
Interrupt signal
(INTTM010)
TI000 pin
TI010 pin
Edge
detection
Edge
detection
Capture
signal
Capture register
(CR000)
Interrupt signal
(INTTM000)
Figure 6-48. Block Diagram of Pulse Width Measurement
(Clear & Start Mode Entered by TI000 Pin Valid Edge Input)
Operable bits
TMC003, TMC002
Count clock
Clear
Timer counter
(TM00)
Capture signal
Capture register
(CR010)
TI000 pin
TI010 pin
Edge
detection
Edge
detection
Capture
signal
Capture register
(CR000)
Interrupt signal
(INTTM010)
Interrupt signal
(INTTM000)
198
User’s Manual U18698EJ1V0UD