
ii
EPSON
S1C8F360 TECHNICAL MANUAL
CONTENTS
5
PERIPHERAL CIRCUITS AND THEIR OPERATION ................................ 18
5.1
I/O Memory Map .............................................................................................................. 18
5.2
System Controller and Bus Control ..................................................................................31
5.2.1 Bus mode settings .................................................................................................................... 31
5.2.2 Address decoder (CE output) settings ..................................................................................... 33
5.2.3 WAIT state settings .................................................................................................................. 34
5.2.4 Setting the bus authority release request signal ...................................................................... 34
5.2.5 Stack page setting .................................................................................................................... 34
5.2.6 Control of system controller .................................................................................................... 35
5.2.7 Programming notes ................................................................................................................. 38
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 ...................................................................................................... 39
5.3.4 Programming notes ................................................................................................................. 39
5.4
Oscillation Circuits and ......................................................................................................
Operating Mode ................................................................................................................40
5.4.1 Configuration of oscillation circuits ....................................................................................... 40
5.4.2 Mask option ............................................................................................................................. 40
5.4.3 OSC1 oscillation circuit .......................................................................................................... 40
5.4.4 OSC3 oscillation circuit .......................................................................................................... 41
5.4.5 Operating mode ....................................................................................................................... 41
5.4.6 Switching the CPU clocks ....................................................................................................... 42
5.4.7 Control of oscillation circuit and operating mode .................................................................. 43
5.4.8 Programming notes ................................................................................................................. 44
5.5
Input Ports (K ports) ......................................................................................................... 45
5.5.1 Configuration of input ports .................................................................................................... 45
5.5.2 Mask option ............................................................................................................................. 45
5.5.3 Interrupt function and input comparison register ................................................................... 46
5.5.4 Control of input ports .............................................................................................................. 48
5.5.5 Programming note ................................................................................................................... 50
5.6
Output Ports (R ports) ...................................................................................................... 51
5.6.1 Configuration of output ports .................................................................................................. 51
5.6.2 Mask option ............................................................................................................................. 51
5.6.3 High impedance control .......................................................................................................... 52
5.6.4 DC output ................................................................................................................................ 52
5.6.5 Special output .......................................................................................................................... 52
5.6.6 Control of output ports ............................................................................................................ 56
5.6.7 Programming notes ................................................................................................................. 60
5.7
I/O Ports (P ports) ............................................................................................................ 61
5.7.1 Configuration of I/O ports ....................................................................................................... 61
5.7.2 Mask option ............................................................................................................................. 61
5.7.3 I/O control registers and I/O mode ......................................................................................... 62
5.7.4 Control of I/O ports ................................................................................................................. 62
5.7.5 Programming notes ................................................................................................................. 63
5.8
Serial Interface ................................................................................................................. 64
5.8.1 Configuration of serial interface ............................................................................................. 64
5.8.2 Mask option ............................................................................................................................. 65
5.8.3 Transfer modes ........................................................................................................................ 65
5.8.4 Clock source ............................................................................................................................ 66
5.8.5 Transmit-receive control ......................................................................................................... 67
5.8.6 Operation of clock synchronous transfer ................................................................................ 68
5.8.7 Operation of asynchronous transfer ....................................................................................... 72
5.8.8 Interrupt function .................................................................................................................... 76
5.8.9 Control of serial interface ....................................................................................................... 78
5.8.10 Programming notes ............................................................................................................... 82