15 CLOCK TIMER (TC)
188
EPSON
S1C17001 TECHNICAL MANUAL
15.7 Precautions
• The OSC1 oscillator circuit must be set to On before operating the clock timer.
• To prevent generating unnecessary interrupts, reset the CT_IFLG register interrupt flag before permitting clock
timer interrupts by the CT_IMSK register.
• The clock timer switches to Run/Stop mode when data is written to CTRUN synchronized with the 256 Hz signal
falling edge. When 0 is written to CTRUN (D0/CT_CTL register), the timer switches to Stop state after counting
an additional “+1.” 1 is retained for CTRUN reading until the timer actually stops.
Figure 15.7.1 shows the Run/Stop control timing chart.
CTRUN(WR)
CT_CNT register
0x57
0x58 0x59 0x5a 0x5b
0x5c
CTRUN(RD)
256Hz
Figure 15.7.1: Run/Stop control timing chart
• Executing the slp command will destabilize a running clock timer (CTRUN = 1) during recovery from SLEEP
state. When switching to SLEEP state, set the clock timer to STOP (CTRUN = 0) before executing the slp com-
mand.
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 ...