
I-ii
EPSON
S1C60N08 TECHNICAL HARDWARE
CONTENTS
4.6
I/O Ports (P00–P03, P10–P13) ................................................................. I-31
4.6.1 Configuration of I/O ports ....................................................................... I-31
4.6.2 I/O control register and I/O mode ........................................................... I-31
4.6.3 Mask option .............................................................................................. I-31
4.6.4 Control of I/O ports .................................................................................. I-32
4.6.5 Programming notes .................................................................................. I-33
4.7
Serial Interface (SIN, SOUT, SCLK) ......................................................... I-34
4.7.1 Configuration of serial interface ............................................................. I-34
4.7.2 Master mode and slave mode of serial interface ..................................... I-34
4.7.3 Data input/output and interrupt function ................................................ I-35
4.7.4 Mask option .............................................................................................. I-37
4.7.5 Control of serial interface ........................................................................ I-38
4.7.6 Programming notes .................................................................................. I-40
4.8
LCD Driver (COM0–COM3, SEG0–SEG47) ........................................... I-41
4.8.1 Configuration of LCD driver ................................................................... I-41
4.8.2 Cadence adjustment of oscillation frequency .......................................... I-46
4.8.3 Mask option (segment allocation) ............................................................ I-47
4.8.4 Control of LCD driver .............................................................................. I-48
4.8.5 Programming notes .................................................................................. I-49
4.9
Clock Timer ................................................................................................ I-50
4.9.1 Configuration of clock timer .................................................................... I-50
4.9.2 Interrupt function ..................................................................................... I-50
4.9.3 Control of clock timer .............................................................................. I-51
4.9.4 Programming notes .................................................................................. I-52
4.10 Stopwatch Timer ......................................................................................... I-53
4.10.1 Configuration of stopwatch timer .......................................................... I-53
4.10.2 Count-up pattern .................................................................................... I-53
4.10.3 Interrupt function ................................................................................... I-54
4.10.4 Control of stopwatch timer .................................................................... I-55
4.10.5 Programming notes ................................................................................ I-56
4.11 Sound Generator ........................................................................................ I-57
4.11.1 Configuration of sound generator ......................................................... I-57
4.11.2 Frequency setting ................................................................................... I-58
4.11.3 Digital envelope ..................................................................................... I-58
4.11.4 Mask option ............................................................................................ I-59
4.11.5 Control of sound generator .................................................................... I-60
4.11.6 Programming note .................................................................................. I-61
4.12 Event Counter ............................................................................................ I-62
4.12.1 Configuration of event counter .............................................................. I-62
4.12.2 Switching count mode ............................................................................ I-62
4.12.3 Mask option ............................................................................................ I-63
4.12.4 Control of event counter ......................................................................... I-64
4.12.5 Programming notes ................................................................................ I-65
4.13 Analog Comparator ................................................................................... I-66
4.13.1 Configuration of analog comparator ..................................................... I-66
4.13.2 Operation of analog comparator ........................................................... I-66
4.13.3 Control of analog comparator ............................................................... I-67
4.13.4 Programming notes ................................................................................ I-67
4.14 Battery Life Detection (BLD) Circuit ........................................................ I-68
4.14.1 Configuration of BLD circuit ................................................................. I-68
4.14.2 Programmable selection of evaluation voltage ..................................... I-68
4.14.3 Detection timing of BLD circuit ............................................................. I-69
4.14.4 Control of BLD circuit ........................................................................... I-70
4.14.5 Programming notes ................................................................................ I-71