ii
EPSON
E0C88832/88862 TECHNICAL MANUAL
CONTENTS
5.4.4 Control of input ports .............................................................................................................. 36
5.4.5 Programming note ................................................................................................................... 38
5.5
Output Ports (R ports) ...................................................................................................... 39
5.5.1 Configuration of output ports .................................................................................................. 39
5.5.2 Mask option ............................................................................................................................. 39
5.5.3 High impedance control .......................................................................................................... 39
5.5.4 DC output ................................................................................................................................ 39
5.5.5 Special output .......................................................................................................................... 39
5.5.6 Control of output ports ............................................................................................................ 42
5.5.7 Programming notes ................................................................................................................. 45
5.6
I/O Ports (P ports) ............................................................................................................ 46
5.6.1 Configuration of I/O ports ....................................................................................................... 46
5.6.2 Mask option ............................................................................................................................. 46
5.6.3 I/O control registers and I/O mode ......................................................................................... 46
5.6.4 Control of I/O ports ................................................................................................................. 47
5.6.5 Programming note ................................................................................................................... 47
5.7
Serial Interface ................................................................................................................. 48
5.7.1 Configuration of serial interface ............................................................................................. 48
5.7.2 Mask option ............................................................................................................................. 49
5.7.3 Transfer modes ........................................................................................................................ 49
5.7.4 Clock source ............................................................................................................................ 50
5.7.5 Transmit-receive control ......................................................................................................... 51
5.7.6 Operation of clock synchronous transfer ................................................................................ 52
5.7.7 Operation of asynchronous transfer ....................................................................................... 56
5.7.8 Interrupt function .................................................................................................................... 60
5.7.9 Control of serial interface ....................................................................................................... 62
5.7.10 Programming notes ............................................................................................................... 66
5.8
Clock Timer ....................................................................................................................... 67
5.8.1 Configuration of clock timer ................................................................................................... 67
5.8.2 Interrupt function .................................................................................................................... 67
5.8.3 Control of clock timer ............................................................................................................. 69
5.8.4 Programming notes ................................................................................................................. 71
5.9
Stopwatch Timer ............................................................................................................... 72
5.9.1 Configuration of stopwatch timer ........................................................................................... 72
5.9.2 Count up pattern ...................................................................................................................... 72
5.9.3 Interrupt function .................................................................................................................... 73
5.9.4 Control of stopwatch timer ...................................................................................................... 74
5.9.5 Programming notes ................................................................................................................. 76
5.10
Programmable Timer ........................................................................................................ 77
5.10.1 Configuration of programmable timer .................................................................................. 77
5.10.2 Count operation and setting basic mode ............................................................................... 77
5.10.3 Setting of input clock ............................................................................................................. 79
5.10.4 Timer mode ............................................................................................................................ 79
5.10.5 Event counter mode ............................................................................................................... 80
5.10.6 Pulse width measurement timer mode ................................................................................... 80
5.10.7 Interrupt function .................................................................................................................. 81
5.10.8 Setting of TOUT output ......................................................................................................... 81
5.10.9 Transmission rate setting of serial interface ......................................................................... 82
5.10.10 Control of programmable timer .......................................................................................... 83
5.10.11 Programming notes ............................................................................................................. 88
5.11
LCD Controller ................................................................................................................. 89
5.11.1 Configuration of LCD controller .......................................................................................... 89
5.11.2 Mask option ........................................................................................................................... 89
5.11.3 LCD power supply ................................................................................................................. 90
5.11.4 LCD driver ............................................................................................................................ 90
5.11.5 Display memory ..................................................................................................................... 93
Summary of Contents for 0C88832
Page 6: ......