
ii
EPSON
S1C63406 TECHNICAL MANUAL
CONTENTS
4.5
Output Ports (R10–R13) .............................................................................. 32
4.5.1 Configuration of output ports ................................................................... 32
4.5.2 Mask option ............................................................................................... 32
4.5.3 DC output .................................................................................................. 33
4.5.4 Special output ............................................................................................ 33
4.5.5 I/O memory of output ports ....................................................................... 35
4.5.6 Programming notes ................................................................................... 36
4.6
I/O Ports (P20–P23) .................................................................................... 37
4.6.1 Configuration of I/O ports ........................................................................ 37
4.6.2 Mask option ............................................................................................... 38
4.6.3 I/O control registers and input/output mode ............................................ 38
4.6.4 Pull-up during input mode ........................................................................ 38
4.6.5 I/O memory of I/O ports ............................................................................ 39
4.6.6 Programming note ..................................................................................... 41
4.7
LCD Driver (COM0–COM8, SEG0–SEG59) ............................................. 42
4.7.1 Configuration of LCD driver .................................................................... 42
4.7.2 Power supply for LCD driving .................................................................. 42
4.7.3 LCD display control (ON/OFF) and switching of duty ............................ 42
4.7.4 Display memory ......................................................................................... 44
4.7.5 LCD contrast adjustment .......................................................................... 44
4.7.6 I/O memory of LCD driver ........................................................................ 45
4.7.7 Programming notes ................................................................................... 47
4.8
Clock Timer .................................................................................................. 48
4.8.1 Configuration of clock timer ..................................................................... 48
4.8.2 Data reading and hold function ................................................................ 48
4.8.3 Interrupt function ...................................................................................... 49
4.8.4 I/O memory of clock timer ........................................................................ 50
4.8.5 Programming notes ................................................................................... 52
4.9
Stopwatch Timer ........................................................................................... 53
4.9.1 Configuration of stopwatch timer ............................................................. 53
4.9.2 Count-up pattern ....................................................................................... 53
4.9.3 Interrupt function ...................................................................................... 54
4.9.4 I/O memory of stopwatch timer ................................................................ 55
4.9.5 Programming notes ................................................................................... 56
4.10 Programmable Timer ................................................................................... 57
4.10.1 Configuration of programmable timer .................................................... 57
4.10.2 Tow separate 8-bit timer (MODE16 = "0") operation ........................... 58
4.10.2.1 Setting of initial value and counting down ................................. 58
4.10.2.2 Counter mode .............................................................................. 59
4.10.2.3 Setting of input clock in timer mode ........................................... 60
4.10.2.4 Interrupt function ........................................................................ 61
4.10.2.5 Setting of TOUT output ............................................................... 61
4.10.2.6 Transfer rate setting for serial interface ..................................... 62
4.10.3 One channel
× 16-bit timer (MODE16 = "1") operation ...................... 62
4.10.3.1 Setting of initial value and counting down ................................. 62
4.10.3.2 Counter mode .............................................................................. 63
4.10.3.3 Setting of input clock in timer mode ........................................... 64
4.10.3.4 Interrupt function ........................................................................ 65
4.10.3.5 Setting of TOUT output ............................................................... 65
4.10.3.6 Transfer rate setting for serial interface ..................................... 66
4.10.4 I/O memory of programmable timer ....................................................... 67
4.10.5 Programming notes ................................................................................. 72
4.11 Serial Interface ............................................................................................ 73
4.11.1 Configuration of serial interface ............................................................ 73
4.11.2 Mask option ............................................................................................. 74
4.11.3 Transfer modes ........................................................................................ 74
4.11.4 Clock source ............................................................................................ 76