Chapter 8
8-bit Timer
Simple Pulse Width Measurement VIII - 29
8.7 Simple Pulse Width Measurement
8.7.1 Operation (Timer 0, Timer 2 and Timer 4)
Simple Pulse Width Measurement Operation by 8-bit Timer
The input signal from an external interrupt pin (for the simple pulse width measurement) is sampled at the count
clock. The binary counter of the timer counts up while the sampled signal is "Low". It is available to measure the
pulse width by reading the count value of the timer.
For pulse width measurement pins, refer to Table:8.1.1.
Count Timing of Simple Pulse Width Measurement
Figure:8.7.1 Count Timing of Simple Pulse Width Measurement
The internal enable signal is generated while the timer is in active by setting TMnMD.TMnEN to "1" and the sig-
nal sampled at the count clock is "Low". The signal is input from an external interrupt pin (for the simple pulse
width measurement). While the internal enable signal is "High", the timer counts up.
04 05
FF
00 01 02
03
ount
lock
MnEN
it
nternal
nable
ompare
egister
inary
ounter
External
interrupt
IRQn