TIMERS and TIMER/COUNTERS
KS57C2308/P2308/C2316/P2316
TC0 ENABLE/DISABLE PROCEDURE
Enable Timer/Counter 0
— Set TMOD0.2 to logic one
— Set the TC0 interrupt enable flag IET0 to logic one
— Set TMOD0.3 to logic one
TCNT0, IRQT0, and TOL0 are cleared to logic zero, and timer/counter operation starts.
Disable Timer/Counter 0
— Set TMOD0.2 to logic zero
Clock signal input to the counter register TCNT0 is halted. The current TCNT0 value is retained and can be read
if necessary.
11-12