16 STOPWATCH TIMER (SWT)
S1C17001 TECHNICAL MANUAL
EPSON
201
16.8 Precautions
• The OSC1 oscillator circuit must be set to On before operating the stopwatch timer.
• To prevent generating unnecessary interrupts, reset the SWT_IFLG register interrupt flag before permitting stop-
watch timer interrupts by the SWT_IMSK register.
• The stopwatch timer switches to Run/Stop mode when data is written to SWTRUN (D0/SWT_CTL resister) syn-
chronized with the 256 Hz signal falling edge. When 0 is written to SWTRUN, the timer switches to Stop state
after counting an additional “+1.” 1 is retained for SWTRUN reading until the timer actually stops.
Figure 16.8.1 shows the Run/Stop control timing chart.
SWTRUN(WR)
SWT_BCNT register
27
28
29
30
31
32
SWTRUN(RD)
256Hz
Figure 16.8.1: Run/Stop control timing chart
• Executing the slp command will destabilize a running stopwatch timer (SWTRUN = 1) during recovery from
SLEEP state. When switching to SLEEP state, set the stopwatch timer to STOP (SWTRUN = 0) before executing
the slp command.
Содержание S1C17001
Страница 1: ...Technical Manual S1C17001 CMOS 16 BIT SINGLE CHIP MICROCONTROLLER ...
Страница 31: ...3 MEMORY MAP AND BUS CONTROL 22 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 33: ...4 POWER SUPPLY VOLTAGE 24 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 63: ...6 INITERRUPT CONTROLLER 54 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 87: ...8 CLOCK GENERATOR CLG 78 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 91: ...9 PRESCALER PSC 82 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 133: ...11 16 BIT TIMER T16 124 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 185: ...14 8 BIT OSC1 TIMER T8OSC1 176 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 211: ...16 STOPWATCH TIMER SWT 202 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 219: ...17 WATCHDOG TIMER WDT 210 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 241: ...18 UART 232 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 277: ...20 I2 C 268 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 297: ...21 REMOTE CONTROLLER REMC 288 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 303: ...22 ON CHIP DEBUGGER DBG 294 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...
Страница 313: ...25 PACKAGE 304 EPSON S1C17001 TECHNICAL MANUAL This page intentionally left blank ...