12 8-BIT TIMER (T8F)
126
EPSON
S1C17001 TECHNICAL MANUAL
12.2 8-bit Timer Count Mode
The 8-bit timer features two count modes: Repeat mode and One-shot mode. These modes are selected using the
TRMD bit (D4/T8F_CTL register).
∗
TRMD
: Count Mode Select Bit in the 8-bit Timer Control (T8F_CTL) Register (D4/0x4206)
Repeat mode (TRMD = 0, default)
Setting TRMD to 0 sets the 8-bit timer to Repeat mode.
In this mode, once the count starts, the 8-bit timer continues running until stopped by the application program.
If the counter underflows, the timer presets the reload data register value into the counter and continues the
count. Thus, the timer periodically outputs an underflow pulse. The 8-bit timer should be set to this mode to
generate periodic interrupts at desired intervals or to generate a serial transfer clock.
One-shot mode (TRMD = 1)
Setting TRMD to 1 sets the 8-bit timer to One-shot mode.
In this mode, the 8-bit timer stops automatically as soon as the counter underflows. This means only one inter-
rupt can be generated after the timer starts. Note that the timer presets the reload data register value to the coun-
ter, then stops after an underflow has occurred. The 8-bit timer should be set to this mode to set a specific wait
time.
Note: Make sure the 8-bit timer count is halted before changing count mode settings.
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 ...