
ii
EPSON
S1C63808 TECHNICAL MANUAL
CONTENTS
4.5
Output Ports (R00–R03 and R10–R13) ....................................................... 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 ....................................................................... 36
4.5.6 Programming notes ................................................................................... 38
4.6
I/O Ports (P00–P03, P10–P13, P20–P23, P30–P33 and P40–P43) .......... 39
4.6.1 Configuration of I/O ports ........................................................................ 39
4.6.2 Mask option ............................................................................................... 40
4.6.3 I/O control registers and input/output mode ............................................ 40
4.6.4 Pull-down during input mode ................................................................... 40
4.6.5 I/O memory of I/O ports ............................................................................ 41
4.6.6 Programming note ..................................................................................... 44
4.7
Clock Timer .................................................................................................. 45
4.7.1 Configuration of clock timer ..................................................................... 45
4.7.2 Data reading and hold function ................................................................ 45
4.7.3 Interrupt function ...................................................................................... 46
4.7.4 I/O memory of clock timer ........................................................................ 47
4.7.5 Programming notes ................................................................................... 48
4.8
Stopwatch Timer ........................................................................................... 49
4.8.1 Configuration of stopwatch timer ............................................................. 49
4.8.2 Counter and prescaler ............................................................................... 49
4.8.3 Capture buffer and hold function .............................................................. 50
4.8.4 Stopwatch timer RUN/STOP and reset ..................................................... 51
4.8.5 Direct input function and key mask .......................................................... 51
4.8.6 Interrupt function ...................................................................................... 54
4.8.7 I/O memory of stopwatch timer ................................................................ 56
4.8.8 Programming notes ................................................................................... 59
4.9
Programmable Timer ................................................................................... 60
4.9.1 Configuration of programmable timer ...................................................... 60
4.9.2 Basic count operation ............................................................................... 61
4.9.3 Setting the input clock ............................................................................... 62
4.9.4 Event counter mode (timer 0) ................................................................... 62
4.9.5 16-bit timer (timer 0 + timer 1) ................................................................ 63
4.9.6 Interrupt function ...................................................................................... 64
4.9.7 Control of TOUT output ............................................................................ 64
4.9.8 Transfer rate setting for serial interface ................................................... 65
4.9.9 I/O memory of programmable timer ......................................................... 66
4.9.10 Programming notes ................................................................................. 71
4.10 Serial Interface ............................................................................................ 72
4.10.1 Configuration of serial interface ............................................................ 72
4.10.2 Mask option ............................................................................................. 73
4.10.3 Transfer modes ........................................................................................ 73
4.10.4 Clock source ............................................................................................ 75
4.10.5 Transmit-receive control ......................................................................... 76
4.10.6 Operation of clock synchronous transfer ................................................ 77
4.10.7 Operation of asynchronous transfer ....................................................... 82
4.10.8 Interrupt function .................................................................................... 87
4.10.9 I/O memory of serial interface ................................................................ 89
4.10.10 Programming notes ............................................................................... 96