Count Mode Of The 8-Bit Osc1 Timer - Epson S1C17704 Technical Manual

Cmos 16-bit single chip microcomputer
Table of Contents

Advertisement

14 8-BIT OSC1 TIMER (T8OSC1)

14.2 Count Mode of the 8-bit OSC1 Timer

The 8-bit OSC1 timer has two count modes: repeat mode and one-shot mode. It can be selected using the T8ORMD
(D1/T8OSC1_CTL register).
∗ T8ORMD: Count Mode Select Bit in the 8-bit OSC1 Timer Control (T8OSC1_CTL) Register (D1/0x50c0)
Repeat mode (T8ORMD = 0, default)
The 8-bit OSC1 timer is set in repeat mode when T8ORMD is set to 0.
In this mode, the 8-bit OSC1 timer does not stop after it starts counting until the application program stops the
timer. When the counter value matches to the compare data, the timer resets the counter and continues counting.
At the same time, the timer outputs the interrupt signal. Set the 8-bit OSC1 timer in this mode when generating
periodical interrupts with a given interval.
One-shot mode (T8ORMD = 1)
The 8-bit OSC1 timer is set in one-shot mode when T8ORMD is set to 1.
In this mode, the 8-bit OSC1 timer automatically stops counting when the counter value matches to the
compare data, so only one interrupt can be generated after starting the timer. When a compare match occurs, the
counter is reset before the timer operation stops. Set the 8-bit OSC1 timer in this mode when a certain waiting
time must be generated.
Note: When setting the count mode, make sure the 8-bit OSC1 timer counter is stopped.
14-2
EPSON
S1C17704 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents