ii
EPSON
S1C63455 TECHNICAL MANUAL
CONTENTS
4.5
Output Ports (R00–R03) .............................................................................. 31
4.5.1 Configuration of output ports ................................................................... 31
4.5.2 Mask option ............................................................................................... 31
4.5.3 High impedance control ............................................................................ 32
4.5.4 Special output ............................................................................................ 32
4.5.5 I/O memory of output ports ....................................................................... 34
4.5.6 Programming notes ................................................................................... 35
4.6
I/O Ports (P00–P03 and P10–P13) ............................................................. 36
4.6.1 Configuration of I/O ports ........................................................................ 36
4.6.2 Mask option ............................................................................................... 37
4.6.3 I/O control registers and input/output mode ............................................ 37
4.6.4 Pull-up during input mode ........................................................................ 37
4.6.5 I/O memory of I/O ports ............................................................................ 38
4.6.6 Programming note ..................................................................................... 40
4.7
LCD Driver (COM0–COM7, SEG0–SEG59) ............................................. 41
4.7.1 Configuration of LCD driver .................................................................... 41
4.7.2 Power supply for LCD driving .................................................................. 41
4.7.3 LCD display control (ON/OFF) and LCD drive waveform ..................... 42
4.7.4 Display memory ......................................................................................... 43
4.7.5 LCD contrast adjustment .......................................................................... 43
4.7.6 I/O memory of LCD driver ........................................................................ 44
4.7.7 Programming notes ................................................................................... 45
4.8
Clock Timer .................................................................................................. 46
4.8.1 Configuration of clock timer ..................................................................... 46
4.8.2 Data reading and hold function ................................................................ 46
4.8.3 Interrupt function ...................................................................................... 47
4.8.4 I/O memory of clock timer ........................................................................ 48
4.8.5 Programming notes ................................................................................... 50
4.9
Stopwatch Timer ........................................................................................... 51
4.9.1 Configuration of stopwatch timer ............................................................. 51
4.9.2 Count-up pattern ....................................................................................... 51
4.9.3 Interrupt function ...................................................................................... 52
4.9.4 I/O memory of stopwatch timer ................................................................ 53
4.9.5 Programming notes ................................................................................... 54
4.10 Programmable Timer ................................................................................... 55
4.10.1 Configuration of programmable timer .................................................... 55
4.10.2 Setting of initial value and counting down ............................................. 56
4.10.3 Setting of input clock in timer mode ....................................................... 57
4.10.4 Interrupt function .................................................................................... 57
4.10.5 Setting of TOUT output ........................................................................... 58
4.10.6 Transfer rate setting for serial interface ................................................ 59
4.10.7 I/O memory of programmable timer ....................................................... 60
4.10.8 Programming notes ................................................................................. 64
4.11 Serial Interface (SIN, SOUT, SCLK, SRDY) ................................................ 65
4.11.1 Configuration of serial interface ............................................................ 65
4.11.2 Mask option ............................................................................................. 66
4.11.3 Master mode and slave mode of serial interface .................................... 66
4.11.4 Data input/output and interrupt function ............................................... 67
4.11.5 I/O memory of serial interface ................................................................ 70
4.11.6 Programming notes ................................................................................. 73