14 8-BIT OSC1 TIMER (T8OSC1)
170
EPSON
S1C17001 TECHNICAL MANUAL
0x50c0: 8-bit OSC1 Timer Control Register (T8OSC1_CTL)
Register name Address
Bit
Name
Function
Setting
Init. R/W
Remarks
8-bit OSC1
Timer Control
Register
(T8OSC1_CTL)
0x50c0
(8 bits)
D7–5
–
reserved
–
–
–
0 when being read.
D4
T8ORST
Timer reset
1 Reset
0 Ignored
0
W
D3–2
–
reserved
–
–
–
D1
T8ORMD
Count mode select
1 One shot
0 Repeat
0
R/W
D0
T8ORUN
Timer run/stop control
1 Run
0 Stop
0
R/W
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.
Summary of Contents for S1C17001
Page 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Page 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Page 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...