
ii
EPSON
S1C8F626 TECHNICAL MANUAL
CONTENTS
5.5
Input Ports (K ports) ......................................................................................................... 37
5.5.1 Configuration of input ports .................................................................................................... 37
5.5.2 Input interface level ................................................................................................................. 37
5.5.3 Pull-up control ........................................................................................................................ 37
5.5.4 Interrupt function and input comparison register ................................................................... 37
5.5.5 Control of input ports .............................................................................................................. 39
5.5.6 Programming notes ................................................................................................................. 42
5.6
I/O Ports (P ports) ............................................................................................................ 43
5.6.1 Configuration of I/O ports ....................................................................................................... 43
5.6.2 I/O control registers and I/O mode ......................................................................................... 43
5.6.3 Input interface level ................................................................................................................. 43
5.6.4 Pull-up control ........................................................................................................................ 44
5.6.5 Special output .......................................................................................................................... 44
5.6.6 Control of I/O ports ................................................................................................................. 46
5.6.7 Programming notes ................................................................................................................. 51
5.7
Serial Interface ................................................................................................................. 52
5.7.1 Configuration of serial interface ............................................................................................. 52
5.7.2 I/O terminal specifications ...................................................................................................... 53
5.7.3 Transfer modes ........................................................................................................................ 53
5.7.4 Clock source ............................................................................................................................ 54
5.7.5 Transmit-receive control ......................................................................................................... 55
5.7.6 Operation of clock synchronous transfer ................................................................................ 56
5.7.7 Operation of asynchronous transfer ....................................................................................... 60
5.7.8 IR (Infrared-ray) interface ...................................................................................................... 65
5.7.9 Interrupt function .................................................................................................................... 67
5.7.10 Control of serial interface ..................................................................................................... 69
5.7.11 Programming notes ............................................................................................................... 76
5.8
Clock Timer ....................................................................................................................... 77
5.8.1 Configuration of clock timer ................................................................................................... 77
5.8.2 Interrupt function .................................................................................................................... 77
5.8.3 Control of clock timer ............................................................................................................. 79
5.8.4 Programming notes ................................................................................................................. 81
5.9
Stopwatch Timer ............................................................................................................... 82
5.9.1 Configuration of stopwatch timer ........................................................................................... 82
5.9.2 Count up pattern ...................................................................................................................... 82
5.9.3 Interrupt function .................................................................................................................... 83
5.9.4 Control of stopwatch timer ...................................................................................................... 84
5.9.5 Programming notes ................................................................................................................. 86
5.10
Programmable Timer ........................................................................................................ 87
5.10.1 Configuration of programmable timer .................................................................................. 87
5.10.2 Operation mode ..................................................................................................................... 88
5.10.3 Setting of input clock ............................................................................................................. 90
5.10.4 Operation and control of timer ............................................................................................. 90
5.10.5 Interrupt function .................................................................................................................. 92
5.10.6 Setting of TOUT output ......................................................................................................... 94
5.10.7 Transfer rate setting of serial interface ................................................................................. 95
5.10.8 Setting frame frequency for LCD driver ............................................................................... 95
5.10.9 Control of programmable timer ............................................................................................96
5.10.10 Programming notes ............................................................................................................ 108
5.11
LCD Driver ......................................................................................................................109
5.11.1 Configuration of LCD driver ................................................................................................ 109
5.11.2 LCD power supply ................................................................................................................ 109
5.11.3 Frame frequency .................................................................................................................. 110
5.11.4 Switching drive duty ............................................................................................................. 110
5.11.5 Display memory .................................................................................................................... 114
5.11.6 Display control ..................................................................................................................... 121
5.11.7 Control of LCD driver .......................................................................................................... 122
5.11.8 Programming notes .............................................................................................................. 124