TABLE OF CONTENTS
III-7 CLOCK TIMER ...............................................................................................B-III-7-1
Configuration of Clock Timer.........................................................................................................................B-III-7-1
Interrupt Function ..............................................................................................................................................B-III-7-4
Examples of Use of Clock Timer .................................................................................................................B-III-7-6
I/O Memory of Clock Timer............................................................................................................................B-III-7-7
Programming Notes........................................................................................................................................B-III-7-12
III-8 SERIAL INTERFACE ......................................................................................B-III-8-1
Features of Serial Interfaces...........................................................................................................B-III-8-1
I/O Pins of Serial Interface .............................................................................................................................B-III-8-2
Setting Transfer Mode ......................................................................................................................B-III-8-3
Clock-Synchronized Interface.......................................................................................................................B-III-8-4
Asynchronous Interface ................................................................................................................................B-III-8-12
IrDA Interface ....................................................................................................................................................B-III-8-21
Outline of IrDA Interface .................................................................................................................B-III-8-21
Setting IrDA Interface ......................................................................................................................B-III-8-21
I/O Memory of Serial Interface....................................................................................................................B-III-8-28
Programming Notes........................................................................................................................................B-III-8-46
Input Ports (K Ports).........................................................................................................................................B-III-9-1
Structure of Input Port.......................................................................................................................B-III-9-1
Input-Port Pins .....................................................................................................................................B-III-9-2
Notes on Use........................................................................................................................................B-III-9-2
I/O Memory of Input Ports ...............................................................................................................B-III-9-3
I/O Ports (P Ports).............................................................................................................................................B-III-9-4
Structure of I/O Port...........................................................................................................................B-III-9-4
I/O Port Pins .........................................................................................................................................B-III-9-4
I/O Memory of I/O Ports ...................................................................................................................B-III-9-6
Input Interrupt ...................................................................................................................................................B-III-9-11
Port Input Interrupt ...........................................................................................................................B-III-9-11
Key Input Interrupt............................................................................................................................B-III-9-13
Programming Notes .........................................................................................................................B-III-9-23
UART Communications Mode....................................................................................................................B-III-10-7
Overview...............................................................................................................................................B-III-10-7
PDC Communications Mode.......................................................................................................................B-III-10-8
vi
EPSON