9
μ
PD17072,17073
8.
PERIPHERAL CONTROL REGISTERS ........................................................................................... 45
8.1
Outline of Peripheral Control Registers .................................................................................................. 45
8.2
Configuration and Function of Peripheral Control Registers ................................................................. 46
9.
DATA BUFFER (DBF) ....................................................................................................................... 54
9.1
General..................................................................................................................................................... 54
9.2
Data Buffer ............................................................................................................................................... 55
9.3
List of Peripheral Hardware and Data Buffer Functions ........................................................................ 56
9.4
Notes on Using Data Buffer..................................................................................................................... 56
10. GENERAL-PURPOSE PORT............................................................................................................ 57
10.1
General ..................................................................................................................................................... 57
10.2
General-Purpose I/O Ports (P0B, P0C, P0D)......................................................................................... 58
10.3
General-Purpose Input Ports (P1A) ........................................................................................................ 62
10.4
General-Purpose Output Ports (P0A, P1B, P1C)................................................................................... 65
11. INTERRUPT ....................................................................................................................................... 66
11.1
General..................................................................................................................................................... 66
11.2
Interrupt Control Block............................................................................................................................. 67
11.3
Interrupt Stack Register........................................................................................................................... 70
11.4
Stack Pointer, Address Stack Register, and Program Counter ............................................................. 72
11.5
Interrupt Enable Flip-Flop (INTE)............................................................................................................ 72
11.6
Accepting Interrupt................................................................................................................................... 73
11.7
Operations after Accepting Interrupt ....................................................................................................... 77
11.8
Exiting from Interrupt Service Routine.................................................................................................... 78
11.9
External (INT Pin) Interrupts ................................................................................................................... 79
11.10 Internal Interrupt....................................................................................................................................... 81
12. TIMER ................................................................................................................................................ 82
12.1
General ..................................................................................................................................................... 82
12.2
Basic Timer 0 ........................................................................................................................................... 82
12.3
Basic Timer 1 ........................................................................................................................................... 91
13. A/D CONVERTER ............................................................................................................................. 98
13.1
General ..................................................................................................................................................... 98
13.2
Setting A/D Converter Power Supply...................................................................................................... 99
13.3
Input Selector Block............................................................................................................................... 100
13.4
Compare Voltage Generator Block and Compare Block ..................................................................... 102
13.5
Comparison Timing Chart ...................................................................................................................... 107
13.6
Performance of A/D Converter .............................................................................................................. 107
13.7
Using A/D Converter .............................................................................................................................. 108
13.8
Status at Reset .......................................................................................................................................111
14. SERIAL INTERFACE....................................................................................................................... 112
14.1
General ................................................................................................................................................... 112
14.2
Clock Input/Output Control Block and Data Input/Output Control Block............................................. 113
14.3
Clock Control Block ............................................................................................................................... 116
14.4
Clock Counter ........................................................................................................................................ 116