14 8-BIT OSC1 TIMER (T8OSC1)
14-10
EPSON
S1C17704 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):
Has no effect
0 (R):
Always 0 when read (default)
Writing 1 to this bit resets the counter to 0.
D[3:2] Reserved
D1
T8ORMD: Count Mode Select Bit
Selects the count mode of the 8-bit OSC1 timer.
1
(R/W):
One-shot
mode
0 (R/W): Repeat mode (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.
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.
D0
T8ORUN: Timer Run/Stop Control Bit
Controls the timer's Run/Stop state.
1
(R/W):
Run
0 (R/W): Stop (default)
The timer starts counting by writing 1 to T8ORUN and stops counting by writing 0.
In the stop state, the counter data is retained until the timer is reset or placed in a run state.
Summary of Contents for S1C17704
Page 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Page 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Page 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...