
S1C8F360 TECHNICAL MANUAL
EPSON
iii
CONTENTS
5.9
Clock Timer ....................................................................................................................... 83
5.9.1 Configuration of clock timer ................................................................................................... 83
5.9.2 Interrupt function .................................................................................................................... 83
5.9.3 Control of clock timer ............................................................................................................. 85
5.9.4 Programming notes ................................................................................................................. 87
5.10
Stopwatch Timer ............................................................................................................... 88
5.10.1 Configuration of stopwatch timer .........................................................................................88
5.10.2 Count up pattern .................................................................................................................... 88
5.10.3 Interrupt function .................................................................................................................. 89
5.10.4 Control of stopwatch timer .................................................................................................... 90
5.10.5 Programming notes ............................................................................................................... 92
5.11
Programmable Timer ........................................................................................................ 93
5.11.1 Configuration of programmable timer .................................................................................. 93
5.11.2 Count operation and setting basic mode ............................................................................... 93
5.11.3 Setting of input clock ............................................................................................................. 95
5.11.4 Timer mode ............................................................................................................................ 95
5.11.5 Event counter mode ............................................................................................................... 96
5.11.6 Pulse width measurement timer mode ................................................................................... 96
5.11.7 Interrupt function .................................................................................................................. 97
5.11.8 Setting of TOUT output ......................................................................................................... 97
5.11.9 Transmission rate setting of serial interface ......................................................................... 98
5.11.10 Control of programmable timer .......................................................................................... 99
5.11.11 Programming notes ............................................................................................................ 104
5.12
LCD Controller ................................................................................................................105
5.12.1 Configuration of LCD controller ......................................................................................... 105
5.12.2 Mask option .......................................................................................................................... 105
5.12.3 Switching drive duty ............................................................................................................. 105
5.12.4 LCD power supply ................................................................................................................ 105
5.12.5 LCD driver ........................................................................................................................... 105
5.12.6 Display memory .................................................................................................................... 108
5.12.7 Display control ..................................................................................................................... 115
5.12.8 CL and FR outputs ............................................................................................................... 115
5.12.9 Control of LCD controller .................................................................................................... 116
5.12.10 Programming notes ............................................................................................................ 118
5.13
Sound Generator .............................................................................................................. 119
5.13.1 Configuration of sound generator ........................................................................................ 119
5.13.2 Control of buzzer output ....................................................................................................... 119
5.13.3 Setting of buzzer frequency and sound level ........................................................................ 120
5.13.4 Digital envelope ................................................................................................................... 121
5.13.5 One-shot output .................................................................................................................... 121
5.13.6 Control of sound generator .................................................................................................. 122
5.13.7 Programming notes .............................................................................................................. 124
5.14
Analog Comparator .........................................................................................................125
5.14.1 Configuration of analog comparator ................................................................................... 125
5.14.2 Mask option .......................................................................................................................... 125
5.14.3 Analog comparator operation .............................................................................................. 125
5.14.4 Control of analog comparator ............................................................................................. 126
5.14.5 Programming notes .............................................................................................................. 126
5.15
A/D Converter .................................................................................................................. 127
5.15.1 Characteristics and configuration of A/D converter ............................................................ 127
5.15.2 Terminal configuration of A/D converter ............................................................................. 127
5.15.3 Mask option .......................................................................................................................... 127
5.15.4 A/D conversion ..................................................................................................................... 128
5.15.5 Interrupt function ................................................................................................................. 129
5.15.6 Control of A/D converter ...................................................................................................... 130
5.15.7 Programming notes .............................................................................................................. 133