Samsung KS57C2308 Manual page 232

Single-chip cmos microcontroller
Table of Contents

Advertisement

TIMERS and TIMER/COUNTERS
TC0 COMPONENT SUMMARY
Mode register (TMOD0)
Reference register (TREF0)
Counter register (TCNT0)
Clock selector circuit
8-bit comparator
Output latch (TOL0)
Output enable flag (TOE0)
Interrupt request flag (IRQT0)
Interrupt enable flag (IET0)
11-10
Activates the timer/counter and selects the internal clock frequency or the
external clock source at the TCL0 pin.
Stores the reference value for the desired number of clock pulses between
interrupt requests.
Counts internal or external clock pulses based on the bit settings in TMOD0
and TREF0.
Together with the mode register (TMOD0), lets you select one of four internal
clock frequencies or an external clock.
Determines when to generate an interrupt by comparing the current value of
the counter register (TCNT0) with the reference value previously programmed
into the reference register (TREF0).
Where a clock pulse is stored pending output to the serial I/O circuit or to the
TC0 output pin, TCLO0.
When the contents of the TCNT0 and TREF0 registers coincide, the
timer/counter interrupt request flag (IRQT0) is set to "1", the status of TOL0 is
inverted, and an interrupt is generated.
Must be set to logic one before the contents of the TOL0 latch can be output to
TCLO0.
Cleared when TC0 operation starts and the TC0 interrupt service routine is
executed and set to 1 whenever the counter value and reference value
coincide.
Must be set to logic one before the interrupt requests generated by
timer/counter 0 can be processed.
KS57C2308/P2308/C2316/P2316

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

P2308C2316P2316Ks57p2308Ks57c2316Ks57p2316

Table of Contents