
ii EPSON S1C63656 TECHNICAL MANUAL
CONTENTS
4.5 Output Ports (R00–R03) .............................................................................. 38
4.5.1 Configuration of output ports ................................................................... 38
4.5.2 Mask option ............................................................................................... 38
4.5.3 High impedance control ............................................................................ 39
4.5.4 Special output ............................................................................................ 39
4.5.5 I/O memory of output ports....................................................................... 41
4.5.6 Programming notes ................................................................................... 42
4.6 I/O Ports (P00–P03 and P10–P13) ............................................................. 43
4.6.1 Configuration of I/O ports ........................................................................ 43
4.6.2 Mask option ............................................................................................... 44
4.6.3 I/O control registers and input/output mode ............................................ 44
4.6.4 Pull-down during input mode ................................................................... 44
4.6.5 I/O memory of I/O ports............................................................................ 45
4.6.6 Programming note..................................................................................... 47
4.7 LCD Driver (COM0–COM3, SEG0–SEG37) ............................................. 48
4.7.1 Configuration of LCD driver .................................................................... 48
4.7.2 Power supply for LCD driving .................................................................. 48
4.7.3 Control of LCD display and drive waveform ........................................... 48
4.7.4 Display memory......................................................................................... 52
4.7.5 Segment option .......................................................................................... 52
4.7.6 LCD contrast adjustment .......................................................................... 54
4.7.7 I/O memory of LCD driver........................................................................ 55
4.7.8 Programming note..................................................................................... 56
4.8 Clock Timer ..................................................................................................57
4.8.1 Configuration of clock timer ..................................................................... 57
4.8.2 Data reading and hold function ................................................................ 57
4.8.3 Interrupt function ...................................................................................... 58
4.8.4 I/O memory of clock timer ........................................................................ 59
4.8.5 Programming notes ................................................................................... 60
4.9 Stopwatch Timer........................................................................................... 61
4.9.1 Configuration of stopwatch timer ............................................................. 61
4.9.2 Counter and prescaler............................................................................... 61
4.9.3 Capture buffer and hold function.............................................................. 62
4.9.4 Stopwatch timer RUN/STOP and reset ..................................................... 63
4.9.5 Direct input function and key mask .......................................................... 63
4.9.6 Interrupt function ...................................................................................... 66
4.9.7 I/O memory of stopwatch timer ................................................................ 68
4.9.8 Programming notes ................................................................................... 71
4.10 Programmable Timer ...................................................................................72
4.10.1 Configuration of programmable timer.................................................... 72
4.10.2 Basic count operation ............................................................................. 73
4.10.3 Setting the input clock ............................................................................. 74
4.10.4 Event counter mode (timer 0) ................................................................. 74
4.10.5 PWM mode (timer 0, timer 1) ................................................................. 75
4.10.6 16-bit timer (timer 0 + timer 1) .............................................................. 76
4.10.7 Interrupt function .................................................................................... 76
4.10.8 Control of TOUT output .......................................................................... 77
4.10.9 Transfer rate setting for serial interface ................................................ 78
4.10.10 I/O memory of programmable timer ..................................................... 79
4.10.11 Programming notes ............................................................................... 85
4.11 Serial Interface (SIN, SOUT, SCLK, SRDY)................................................ 87
4.11.1 Configuration of serial interface ............................................................ 87
4.11.2 Mask option ............................................................................................. 88
4.11.3 Master mode and slave mode of serial interface.................................... 88
4.11.4 Data input/output and interrupt function ............................................... 89
4.11.5 I/O memory of serial interface................................................................ 92
4.11.6 Programming notes ................................................................................. 95