ii EPSON S1C88650 TECHNICAL MANUAL
CONTENTS
5.3 Watchdog Timer ................................................................................................................39
5.3.1 Configuration of watchdog timer ............................................................................................39
5.3.2 Interrupt function ....................................................................................................................39
5.3.3 Control of watchdog timer ......................................................................................................40
5.3.4 Programming notes................................................................................................................. 40
5.4 Oscillation Circuits ...........................................................................................................41
5.4.1 Configuration of oscillation circuits .......................................................................................41
5.4.2 Mask option............................................................................................................................. 41
5.4.3 OSC1 oscillation circuit.......................................................................................................... 41
5.4.4 OSC3 oscillation circuit.......................................................................................................... 42
5.4.5 Switching the CPU clocks .......................................................................................................42
5.4.6 Control of oscillation circuit........................................................................................... ........43
5.4.7 Programming notes................................................................................................................. 43
5.5 Input Ports (K ports) .........................................................................................................44
5.5.1 Configuration of input ports.................................................................................................... 44
5.5.2 Mask option............................................................................................................................. 44
5.5.3 Pull-up control ........................................................................................................................45
5.5.4 Interrupt function and input comparison register................................................................... 45
5.5.5 Control of input ports.............................................................................................................. 47
5.5.6 Programming notes................................................................................................................. 50
5.6 Output Ports (R ports) ...................................................................................................... 51
5.6.1 Configuration of output ports.................................................................................................. 51
5.6.2 High impedance control.......................................................................................................... 51
5.6.3 DC output ................................................................................................................................51
5.6.4 Control of output ports............................................................................................................ 52
5.7 I/O Ports (P ports) ............................................................................................................54
5.7.1 Configuration of I/O ports....................................................................................................... 54
5.7.2 Mask option............................................................................................................................. 54
5.7.3 I/O control registers and I/O mode....................................................................................... ..54
5.7.4 Pull-up control ........................................................................................................................55
5.7.5 Special output.......................................................................................................................... 55
5.7.6 Control of I/O ports................................................................................................................. 57
5.7.7 Programming notes................................................................................................................. 60
5.8 Serial Interface ................................................................................................................. 61
5.8.1 Configuration of serial interface............................................................................................. 61
5.8.2 Switching of terminal functions............................................................................................... 61
5.8.3 Transfer modes........................................................................................................................ 62
5.8.4 Clock source............................................................................................................................ 63
5.8.5 Transmit-receive control................................................................................................. ........64
5.8.6 Operation of clock synchronous transfer................................................................................ 65
5.8.7 Operation of asynchronous transfer .......................................................................................69
5.8.8 Interrupt function ....................................................................................................................73
5.8.9 Control of serial interface.............................................................................................. .........75
5.8.10 Programming notes....................................................................................................... ........80
5.9 Clock Timer .......................................................................................................................81
5.9.1 Configuration of clock timer ...................................................................................................81
5.9.2 Interrupt function ....................................................................................................................81
5.9.3 Control of clock timer .............................................................................................................83
5.9.4 Programming notes................................................................................................................. 85
5.10 Programmable Timer........................................................................................................ 86
5.10.1 Configuration of programmable timer.................................................................................. 86
5.10.2 Operation mode..................................................................................................................... 87
5.10.3 Setting of input clock............................................................................................................. 89
5.10.4 Operation and control of timer .............................................................................................89
5.10.5 Interrupt function ..................................................................................................................91
5.10.6 Setting of TOUT output .........................................................................................................93
5.10.7 Transfer rate setting of serial interface................................................................................. 94