CHAPTER 10 TIMEBASE TIMER
Setup Procedure Example
Initial Setting
The timebase timer is set up in the following procedure:
1) Disable interrupts.
2) Set the interval time.
3) Enable interrupts.
4) Clear the counter.
Processing interrupts
1) Clear the interrupt request flag.
2) Clear the counter.
168
(TBTC:TBIE = 0)
(TBTC:TBC1, 0)
(TBTC:TBIE = 1)
(TBTC:TCLR = 1)
(TBTC:TBIF = 0)
(TBTC:TCLR = 1)