SN8P2200 Series
USB 1.1 Low-Speed 8-Bit Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 95
Version 1.7
8.5.6 Tn INPUT PULSE WIDTH MEASUREMENT
Tn timer includes pulse width measurement. Select trigger edge direction to decide positive and negative pulse width
measurement. TnG1, 0 = 10 is positive pulse width measurement. Rising edge starts Tn timer and falling edge stop Tn
counting. TnG1, 0 = 11 is negative pulse width measurement. Falling edge starts Tn timer and rising edge stop Tn
counting. End of pulse width measurement, TnIRQ=1 and cleared by firmware for next pulse width measurement.
z
Positive pulse width measurement waveform.
Tn Input Signal
Tn Timer Counter
Rising edge trigger.
Tn start to count.
TnIRQ=0
Falling edge trigger.
Tn stop counting.
TnIRQ=1.
z
Negative pulse width measurement waveform.
Tn Input Signal
Tn Timer Counter
Falling edge trigger.
Tn start to count.
TnIRQ=0
Rising edge trigger.
Tn stop counting.
TnIRQ=1.