
ii
EPSON
S1C6S460 TECHNICAL MANUAL
CONTENTS
CHAPTER
6INPUT/OUTPUT PORTS ______________________________________ 29
6.1
Input Ports (Kxx) .......................................................................................... 29
6.1.1 Configuration of input ports ..................................................................... 29
6.1.2 Mask option ............................................................................................... 29
6.1.3 Interrupt function ...................................................................................... 30
6.1.4 Control of input ports ................................................................................ 32
6.1.5 Programming notes ................................................................................... 34
6.2
Output Ports (Rxx) ....................................................................................... 35
6.2.1 Configuration of output ports ................................................................... 35
6.2.2 Mask option ............................................................................................... 35
6.2.3 High impedance control ............................................................................ 37
6.2.4 Control of output ports .............................................................................. 37
6.2.5 Programming notes ................................................................................... 39
6.3
I/O Ports (Pxx) ............................................................................................. 40
6.3.1 Configuration of I/O ports ........................................................................ 40
6.3.2 Mask option ............................................................................................... 40
6.3.3 I/O control register and input/output mode .............................................. 40
6.3.4 Pull up resistor .......................................................................................... 41
6.3.5 Control of I/O ports ................................................................................... 41
6.3.6 Programming notes ................................................................................... 42
CHAPTER
7 LCD DRIVER ____________________________________________ 43
7.1
Drive Duty .................................................................................................... 43
7.2
Mask Option ................................................................................................. 46
7.3
Display Data Memory .................................................................................. 46
7.4
Control of LCD Driver ................................................................................ 47
7.5
Programming Note ....................................................................................... 48
CHAPTER
8TIMERS _________________________________________________ 49
8.1
Clock Timer .................................................................................................. 49
8.1.1 Configuration of clock timer ..................................................................... 49
8.1.2 Interrupt function ...................................................................................... 49
8.1.3 Control of clock timer ............................................................................... 50
8.1.4 Programming notes ................................................................................... 51
8.2
Stopwatch Timer ........................................................................................... 52
8.2.1 Configuration of stopwatch timer ............................................................. 52
8.2.2 Count-up pattern ....................................................................................... 52
8.2.3 Interrupt function ...................................................................................... 53
8.2.4 Control of stopwatch timer ........................................................................ 54
8.2.5 Programming notes ................................................................................... 55
8.3
Programmable Timer ............................................................................................. 56
8.3.1 Configuration of programmable timer ...................................................... 56
8.3.2 Interrupt function ...................................................................................... 57
8.3.3 Control of programmable timer ................................................................ 58
8.3.4 Programming notes ................................................................................... 60
CHAPTER
9SERIAL INTERFACE _________________________________________ 61
9.1
Configuration of Serial Interface ................................................................ 61
9.2
Mask Option ................................................................................................. 61
9.3
Master Mode and Slave Mode of Serial Interface ...................................... 62
9.4
Data Input/Output and Interrupt Function ................................................. 62