ii
EPSON
S1C60N02 TECHNICAL MANUAL
CONTENTS
4.3
Input Ports (K00–K03) ..................................................... 18
Configuration of input ports ..................................... 18
Input comparison registers and interrupt function ... 19
Mask option ............................................................. 20
Control of input ports ............................................... 20
4.4
Output Ports (R00–R03) .................................................. 22
Configuration of output ports ................................... 22
Mask option ............................................................. 23
Control of output ports ............................................. 25
4.5
I/O Ports (P00–P03) ........................................................ 28
Configuration of I/O ports ........................................ 28
I/O control register and I/O mode ............................ 28
Mask option ............................................................. 29
Control of I/O ports ................................................. 29
4.6
LCD Driver (COM0–COM3, SEG0–SEG19) ................... 31
Configuration of LCD driver ...................................... 31
Cadence adjustment of oscillation frequency ............ 37
Mask option (segment allocation) .............................. 38
Control of LCD driver ............................................... 40
4.7
Clock Timer ..................................................................... 41
Configuration of clock timer ..................................... 41
Interrupt function .................................................... 42
Control of clock timer ............................................... 43
4.8
A/D Converter .................................................................. 45
Configuration of A/D converter ................................ 45
Operation of A/D converter ...................................... 46
Interrupt function .................................................... 51
Usage example of the A/D converter ......................... 51
Control of A/D converter .......................................... 53
4.9
Heavy Load Protection Function ..................................... 57
Operation of heavy load protection function ............. 57
Control of heavy load protection function ................. 58
4.10 Interrupt and HALT .......................................................... 59
Interrupt factors ....................................................... 60
Specific masks and factor flags for interrupt ............. 61
Interrupt vectors ...................................................... 61
Control of interrupt .................................................. 62