II-ii
EPSON
S1C62740 TECHNICAL SOFTWARE
CONTENTS
6.5
I/O Ports (P00–P03, P10–P13 and P20–P23) ........................ II-27
I/O data memory of the I/O ports ...................................... II-27
Control of the I/O ports ...................................................... II-27
Example program for the I/O ports .................................... II-28
Serial I/O port ................................................................... II-31
Programming notes ............................................................ II-31
6.6
LCD Driver .............................................................................. II-32
I/O data memory of the LCD driver .................................... II-32
Control of the LCD driver ................................................... II-32
Example program for the LCD driver .................................. II-33
Programming notes ............................................................ II-35
6.7
Clock Timer ............................................................................. II-36
I/O data memory of the clock timer .................................... II-36
Control of the clock timer ................................................... II-36
Example program for the clock timer .................................. II-37
Programming notes ............................................................ II-38
6.8
Stopwatch Timer ..................................................................... II-39
I/O data memory of the stopwatch timer ............................ II-39
Control of the stopwatch timer ........................................... II-39
Example program for the stopwatch timer .......................... II-40
Programming notes ............................................................ II-42
6.9
Programmable Timer .............................................................. II-43
I/O data memory of the programmable timer ...................... II-43
Control of the programmable timer ..................................... II-44
Example program for the programmable timer .................... II-46
Programming notes ............................................................ II-48
6.10 Serial Interface Circuit ............................................................. II-49
I/O data memory of the serial interface circuit ................... II-49
Control of the serial interface circuit ................................... II-49
Example program for the serial interface circuit ................. II-51
Programming notes ............................................................ II-54
6.11 Amplifier .................................................................................. II-55
I/O data memory of the amplifier circuit ............................ II-55
Control of the amplifier circuit ............................................ II-55
Example program for the amplifier circuit .......................... II-56
Programming notes ............................................................ II-56
6.12 SVD (Supply Voltage Detection) Circuit .................................. II-57
I/O data memory of the SVD circuit ................................... II-57
Control of the SVD circuit .................................................. II-57
Example program for the SVD circuit ................................. II-58
Programming notes ............................................................ II-58
6.13 A/D Converter ......................................................................... II-59
I/O data memory of A/D converter ..................................... II-59
Feature of the A/D converter .............................................. II-60
Control of the A/D converter .............................................. II-60
Example program for the A/D converter ............................. II-62
Programming notes ............................................................ II-64