ii
EPSON
S1C60N13 TECHNICAL MANUAL
CONTENTS
4.6
I/O Ports (P00–P03, P10–P13) ................................................................... 29
4.6.1 Configuration of I/O ports ........................................................................ 29
4.6.2 Mask option ............................................................................................... 29
4.6.3 I/O control register and I/O mode ............................................................ 29
4.6.4 Control of I/O ports ................................................................................... 30
4.6.5 Programming notes ................................................................................... 31
4.7
Serial Interface ............................................................................................ 32
4.7.1 Configuration of serial interface .............................................................. 32
4.7.2 Mask option ............................................................................................... 32
4.7.3 Master mode and slave mode of serial interface ...................................... 33
4.7.4 Data input/output and interrupt function ................................................. 34
4.7.5 Control of serial interface ......................................................................... 36
4.7.6 Programming notes ................................................................................... 38
4.8
LCD Driver (COM0–COM3, SEG0–SEG37) ............................................. 39
4.8.1 Configuration of LCD driver .................................................................... 39
4.8.2 Cadence adjustment of oscillation frequency ........................................... 44
4.8.3 Mask option (segment allocation) ............................................................. 45
4.8.4 Control of LCD driver ............................................................................... 46
4.8.5 Programming notes ................................................................................... 47
4.9
Clock Timer .................................................................................................. 48
4.9.1 Configuration of clock timer ..................................................................... 48
4.9.2 Interrupt function ...................................................................................... 48
4.9.3 Control of clock timer ............................................................................... 49
4.9.4 Programming notes ................................................................................... 50
4.10 Stopwatch Timer ........................................................................................... 51
4.10.1 Configuration of stopwatch timer ........................................................... 51
4.10.2 Count-up pattern ..................................................................................... 51
4.10.3 Interrupt function .................................................................................... 52
4.10.4 Control of stopwatch timer ..................................................................... 53
4.10.5 Programming notes ................................................................................. 54
4.11 Sound Generator .......................................................................................... 55
4.11.1 Configuration of sound generator .......................................................... 55
4.11.2 Frequency setting .................................................................................... 56
4.11.3 Digital envelope ...................................................................................... 56
4.11.4 Mask option ............................................................................................. 57
4.11.5 Control of sound generator ..................................................................... 58
4.11.6 Programming note ................................................................................... 59
4.12 Event Counter .............................................................................................. 60
4.12.1 Configuration of event counter ............................................................... 60
4.12.2 Switching count mode ............................................................................. 60
4.12.3 Mask option ............................................................................................. 61
4.12.4 Control of event counter .......................................................................... 62
4.12.5 Programming notes ................................................................................. 63
4.13 Analog Comparator ..................................................................................... 64
4.13.1 Configuration of analog comparator ...................................................... 64
4.13.2 Operation of analog comparator ............................................................ 64
4.13.3 Control of analog comparator ................................................................ 65
4.13.4 Programming notes ................................................................................. 65
4.14 Supply Voltage Detection (SVD) Circuit ...................................................... 66
4.14.1 Configuration of SVD circuit .................................................................. 66
4.14.2 Detection timing of SVD circuit .............................................................. 66
4.14.3 Control of SVD circuit ............................................................................. 67
4.14.4 Programming notes ................................................................................. 67