
ii
EPSON
S1C63567 TECHNICAL MANUAL
CONTENTS
4.5
Output Ports (R00–R03, R10–R13 and R20–R23) ...................................... 33
4.5.1 Configuration of output ports ................................................................... 33
4.5.2 Mask option ............................................................................................... 33
4.5.3 High impedance control ............................................................................ 34
4.5.4 Special output ............................................................................................ 34
4.5.5 I/O memory of output ports ....................................................................... 37
4.5.6 Programming notes ................................................................................... 40
4.6
I/O Ports (P00–P03, P10–P13, P20–P23 and P30–P33) ........................... 41
4.6.1 Configuration of I/O ports ........................................................................ 41
4.6.2 Mask option ............................................................................................... 42
4.6.3 I/O control registers and input/output mode ............................................ 42
4.6.4 Pull-up during input mode ........................................................................ 42
4.6.5 Special outputs (CL, FR) ........................................................................... 43
4.6.6 I/O memory of I/O ports ............................................................................ 44
4.6.7 Programming notes ................................................................................... 47
4.7
LCD Driver (COM0–COM16, SEG0–SEG59) ........................................... 48
4.7.1 Configuration of LCD driver .................................................................... 48
4.7.2 Power supply for LCD driving .................................................................. 48
4.7.3 LCD display control (ON/OFF) and switching of duty ............................ 48
4.7.4 Display memory ......................................................................................... 50
4.7.5 LCD contrast adjustment .......................................................................... 51
4.7.6 I/O memory of LCD driver ........................................................................ 52
4.7.7 Programming notes ................................................................................... 54
4.8
Clock Timer .................................................................................................. 55
4.8.1 Configuration of clock timer ..................................................................... 55
4.8.2 Data reading and hold function ................................................................ 55
4.8.3 Interrupt function ...................................................................................... 56
4.8.4 I/O memory of clock timer ........................................................................ 57
4.8.5 Programming notes ................................................................................... 58
4.9
Stopwatch Timer ........................................................................................... 59
4.9.1 Configuration of stopwatch timer ............................................................. 59
4.9.2 Count-up pattern ....................................................................................... 59
4.9.3 Interrupt function ...................................................................................... 60
4.9.4 I/O memory of stopwatch timer ................................................................ 61
4.9.5 Programming notes ................................................................................... 62
4.10 Programmable Timer ................................................................................... 63
4.10.1 Configuration of programmable timer .................................................... 63
4.10.2 Setting of initial value and counting down ............................................. 64
4.10.3 Counter mode .......................................................................................... 65
4.10.4 Setting of input clock in timer mode ....................................................... 66
4.10.5 Interrupt function .................................................................................... 67
4.10.6 Setting of TOUT output ........................................................................... 67
4.10.7 Transfer rate setting for serial interface ................................................ 68
4.10.8 I/O memory of programmable timer ....................................................... 69
4.10.9 Programming notes ................................................................................. 74
4.11 Serial Interface ............................................................................................ 75
4.11.1 Configuration of serial interface ............................................................ 75
4.11.2 Mask option ............................................................................................. 76
4.11.3 Transfer modes ........................................................................................ 76
4.11.4 Clock source ............................................................................................ 78
4.11.5 Transmit-receive control ......................................................................... 79
4.11.6 Operation of clock synchronous transfer ................................................ 80
4.11.7 Operation of asynchronous transfer ....................................................... 84
4.11.8 Interrupt function .................................................................................... 88
4.11.9 I/O memory of serial interface ................................................................ 90
4.11.10 Programming notes ............................................................................... 96