
ii
EPSON
S1C88848 TECHNICAL MANUAL
CONTENTS
5.5
Output Ports (R ports) ...................................................................................................... 35
5.5.1 Configuration of output ports .................................................................................................. 35
5.5.2 Mask option ............................................................................................................................. 35
5.5.3 High impedance control .......................................................................................................... 35
5.5.4 DC output ................................................................................................................................ 35
5.5.5 Special output .......................................................................................................................... 36
5.5.6 Control of output ports ............................................................................................................ 38
5.5.7 Programming notes ................................................................................................................. 41
5.6
I/O Ports (P ports) ............................................................................................................ 42
5.6.1 Configuration of I/O ports ....................................................................................................... 42
5.6.2 Mask option ............................................................................................................................. 42
5.6.3 I/O control registers and I/O mode ......................................................................................... 42
5.6.4 Control of I/O ports ................................................................................................................. 43
5.6.5 Programming note ................................................................................................................... 43
5.7
Serial Interface ................................................................................................................. 44
5.7.1 Configuration of serial interface ............................................................................................. 44
5.7.2 Mask option ............................................................................................................................. 45
5.7.3 Transfer modes ........................................................................................................................ 45
5.7.4 Clock source ............................................................................................................................ 46
5.7.5 Transmit-receive control ......................................................................................................... 47
5.7.6 Operation of clock synchronous transfer ................................................................................ 48
5.7.7 Operation of asynchronous transfer ....................................................................................... 52
5.7.8 Interrupt function .................................................................................................................... 56
5.7.9 Control of serial interface ....................................................................................................... 58
5.7.10 Programming notes ............................................................................................................... 62
5.8
Clock Timer ....................................................................................................................... 63
5.8.1 Configuration of clock timer ................................................................................................... 63
5.8.2 Interrupt function .................................................................................................................... 63
5.8.3 Control of clock timer ............................................................................................................. 65
5.8.4 Programming notes ................................................................................................................. 67
5.9
Stopwatch Timer ............................................................................................................... 68
5.9.1 Configuration of stopwatch timer ........................................................................................... 68
5.9.2 Count up pattern ...................................................................................................................... 68
5.9.3 Interrupt function .................................................................................................................... 69
5.9.4 Control of stopwatch timer ...................................................................................................... 70
5.9.5 Programming notes ................................................................................................................. 72
5.10
Programmable Timer ........................................................................................................ 73
5.10.1 Configuration of programmable timer .................................................................................. 73
5.10.2 Count operation and setting basic mode ............................................................................... 74
5.10.3 Setting of input clock ............................................................................................................. 75
5.10.4 Timer mode ............................................................................................................................ 76
5.10.5 Event counter mode ............................................................................................................... 76
5.10.6 Pulse width measurement timer mode ................................................................................... 76
5.10.7 Interrupt function .................................................................................................................. 77
5.10.8 Setting of TOUT output ......................................................................................................... 78
5.10.9 Transmission rate setting of serial interface ......................................................................... 78
5.10.10 Control of programmable timer .......................................................................................... 79
5.10.11 Programming notes ............................................................................................................. 86
5.11
LCD Controller ................................................................................................................. 88
5.11.1 Configuration of LCD controller ..........................................................................................88
5.11.2 Mask option ........................................................................................................................... 89
5.11.3 LCD driver ............................................................................................................................ 90
5.11.4 Display control ...................................................................................................................... 95
5.11.5 Display memory ..................................................................................................................... 95
5.11.6 Control of LCD controller .................................................................................................... 104
5.11.7 Programming note ................................................................................................................ 105