English
Language : 

MC81F4332 Datasheet, PDF (132/198 Pages) Finechips – ABOV SEMICONDUCTOR 8-BIT SINGLE-CHIP MICROCONTROLLERS
MC81F4x16
Function Description
Interval Timer Mode
A match signal is generated and T3O pins are toggled when the T3CR register value equals the
T3DR register value. The match signal generates a timer match interrupt and clears the T3CR
register.
Capture Mode
In capture mode, you have to set EXT6 interrupt. When the EXT6 interrupt is occurred, the T3CR
register value is loaded into the T3DR register and the T3CR register is cleared.
And the timer 3 overflow interrupt is generated whenever the T3CR value is overflowed.
So, If you count how many overflow is occurred and read the T3DR value in EXT6 interrupt routine, it
is possible to measure the time between two EXT6 interrupts. Or it is possible to measure the time
from the T3 initial time to the EXT6 interrupt occurred time.
The time = ( 256 * tCLK ) * overflow_count + (tCLK * T3DR)
Note
„tCLK‟ is the period time of the timer-counter‟s clock source
You must set the T3DR value before set the T3SCR register. Because T3DR value is
fetched when the count is started(the T3CC bit is set) or match/overflow event is occurred.
132
October 19, 2009 Ver.1.35