0X50C0: 8-Bit Osc1 Timer Control Register (T8Osc1_Ctl) - Epson S1C17001 Technical Manual

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

14 8-BIT OSC1 TIMER (T8OSC1)

0x50c0: 8-bit OSC1 Timer Control Register (T8OSC1_CTL)

Register name Address
Bit
8-bit OSC1
0x50c0
D7–5 –
Timer Control
(8 bits)
D4
Register
D3–2 –
(T8OSC1_CTL)
D1
D0
D[7:5]
Reserved
D4
T8ORST: Timer Reset Bit
Resets the 8-bit OSC1 timer.
1 (W):
Reset
0 (W):
Disabled
0 (R):
Normally 0 when read out (default)
Writing 1 to this bit resets the counter to 0.
D[3:2]
Reserved
D1
T8ORMD: Count Mode Select Bit
Selects the 8-bit OSC1 timer count mode.
1 (R/W): One-shot mode
0 (R/W): Repeat mode (default)
Setting T8ORMD to 0 sets the 8-bit OSC1 timer to Repeat mode. In this mode, once the count starts,
the 8-bit timer continues to run until stopped by the application. If the counter matches the compare
data register value, the timer resets the counter and continues counting. This means the timer periodi-
cally outputs a compare match signal. Set the 8-bit OSC1 timer to this mode to generate periodic inter-
rupts at the desired interval.
Setting T8ORMD to 1 sets the 8-bit OSC1 timer to One-shot mode. In this mode, the 8-bit OSC1 timer
stops automatically when the counter matches the compare data register value. This means an interrupt
can be generated only once after the timer has been started. Note that the timer resets the counter and
then stops after a compare match has occurred. Set the 8-bit OSC1 timer to this mode to create a spe-
cific wait time.
Note: Set the count mode only while the 8-bit OSC1 timer count is stopped.
D0
T8ORUN: Timer Run/Stop Control Bit
Controls the timer RUN/STOP.
1 (R/W): Run
0 (R/W): Stop (default)
The timer starts counting when T8ORUN is written as 1 and stops when written as 0. When the timer is
stopped, the counter data is retained until reset or until the next RUN state.
170
Name
Function
reserved
T8ORST
Timer reset
reserved
T8ORMD
Count mode select
T8ORUN
Timer run/stop control
Setting
1 Reset
0 Ignored
1 One shot
0 Repeat
1 Run
0 Stop
EPSON
Init. R/W
Remarks
0 when being read.
0
W
0
R/W
0
R/W
S1C17001 TECHNICAL MANUAL

Advertisement

Table of Contents
loading

Table of Contents