Functional Description Of Two 8-Bit Timers Mode (Timer C And D) - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00
12 TIMER 0

12.2.3 FUNCTIONAL DESCRIPTION OF TWO 8-BIT TIMERS MODE (TIMER C AND D)

12.2.3.1 Interval Timer Function (Timers C and D)
Timers C and D module can generate the Timer C match interrupt (TCINT) and Timer D match interrupt (TDINT).
Timer C match interrupt pending condition (TCCON.1) and Timer D match interrupt pending condition (TDCON.1)
must be cleared by the software in interrupt service routine by means of writing a "0" to TCCON.1 and TDCON.1
interrupt pending bits.
When the global interrupt is enabled, even though TCINT and TDINT are disabled, the application's service
routine can detect a pending condition of TCINT and TDINT by the software and jump to execute the
corresponding sub-routine.
In interval timer mode, a match signal is generated when the counter value is identical to the values written to
Timer C or Timer D reference data registers, TCDATA or TDDATA. The match signal generates corresponding
match interrupts (TCINT and TDINT) and clears the counter.
For example, if you write the value 20H to TCDATA and 38H to TCCON, the counter will increment until it
reaches 20H. At this point, the TD interrupt request is generated, the counter value is cleared, and the
counting is resumed.
12-9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents