11 16-BIT TIMERS (T16)
11-16
EPSON
S1C17704 TECHNICAL MANUAL
D4
TRMD: Count Mode Select Bit
Selects the count mode of the 16-bit timer.
1 (R/W): One-shot mode
0 (R/W): Repeat mode (default)
The 16-bit timer is set in repeat mode when TRMD is set to 0. In this mode, the 16-bit timer does not
stop after it starts counting until the application program stops the timer. When the counter underflows,
the timer presets the reload data register value to the counter and continues counting. The timer
outputs the underflow pulses periodically. Set the 16-bit timer in this mode when generating periodical
interrupts with a given interval or generating the serial transfer clock.
The 16-bit timer is set in one-shot mode when TRMD is set to 1. In this mode, the 16-bit timer
automatically stops counting when the counter underflows, so only one interrupt can be generated after
starting the timer. When an underflow occurs, the counter is preset with the reload data register value
before the timer operation stops. Set the 16-bit timer in this mode when a certain waiting time must be
generated or measuring pulse widths.
D[3:2] Reserved
D1
PRESER: Timer Reset Bit
Resets the 16-bit timer.
1
(W):
Reset
0 (W):
Has no effect
0 (R):
Always 0 when read (default)
Writing 1 to this bit presets the reload data in the counter.
D0
PRUN: 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 PRUN 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.
Содержание S1C17704
Страница 1: ...TECHNICAL MANUAL S1C17704 CMOS 16 BIT SINGLE CHIP MICROCOMPUTER ...
Страница 22: ...1 OVERVIEW 1 10 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 42: ...3 MEMORY MAP BUS CONTROL 3 12 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 82: ...6 INTERRUPT CONTROLLER ITC 6 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 108: ...8 CLOCK GENERATOR CLG 8 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 112: ...9 PRESCALER PSC 9 4 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 138: ...10 I O PORTS P 10 26 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 156: ...11 16 BIT TIMERS T16 11 18 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 208: ...14 8 BIT OSC1 TIMER T8OSC1 14 16 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 234: ...16 STOPWATCH TIMER SWT 16 14 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 242: ...17 WATCHDOG TIMER WDT 17 8 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 264: ...18 UART 18 22 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 300: ...20 I2C 20 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 320: ...21 REMOTE CONTROLLER REMC 21 20 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 360: ...24 ON CHIP DEBUGGER DBG 24 6 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...
Страница 362: ...25 BASIC EXTERNAL WIRING DIAGRAM 25 2 EPSON S1C17704 TECHNICAL MANUAL THIS PAGE IS BLANK ...