10
μ
PD17068
7.
ARITHMETIC LOGIC UNIT (ALU) BLOCK ................................................................................
7.1
OVERVIEW ......................................................................................................................................
7.2
CONFIGURATION AND FUNCTIONS OF THE COMPONENTS OF THE ALU BLOCK ............
7.2.1
ALU...................................................................................................................................
7.2.2
Temporary Storage Registers A and B .......................................................................
7.2.3
Program Status Word....................................................................................................
7.2.4
Decimal Conversion Circuit ..........................................................................................
7.2.5
Address Controller .........................................................................................................
7.3
ALU OPERATIONS .........................................................................................................................
7.4
NOTES ON USING THE ALU ........................................................................................................
7.4.1
Notes on Using the Program Status Word for Operations .....................................
7.4.2
Notes on Performing Decimal Operations .................................................................
60
60
61
61
61
61
61
61
61
65
65
65
8. REGISTER FILE (RF) .....................................................................................................................
8.1
OVERVIEW ......................................................................................................................................
8.2
CONFIGURATION AND FUNCTIONS OF THE REGISTER FILE.................................................
8.2.1
Register File Manipulation Instructions (PEEK WR, rf and POKE rf, WR)..............
8.3
CONTROL REGISTERS...................................................................................................................
8.4
NOTES ON USING THE REGISTER FILE .....................................................................................
66
66
67
68
68
79
9.
DATA BUFFER (DBF)..................................................................................................................
9.1
OVERVIEW ......................................................................................................................................
9.2
DATA BUFFER MAIN BODY ..........................................................................................................
9.2.1
Configuration of the Data Buffer Main Body .............................................................
9.2.2
Instruction to Reference a Table (MOVT DBF, @AR)................................................
9.2.3
Instructions for Controlling the Peripheral Hardware (PUT, GET) .........................
9.3
PERIPHERAL HARDWARE AND DATA BUFFER .........................................................................
9.4
NOTES ON USING THE DATA BUFFER ......................................................................................
80
80
81
81
82
82
82
86
10. GENERAL-PURPOSE PORTS ....................................................................................................
10.1
OVERVIEW ......................................................................................................................................
10.2
GENERAL-PURPOSE I/O PORTS (P0A, P0B, P1B, P1C, P2D) ...................................................
10.2.1
Configurations of the I/O ports ...................................................................................
10.2.2
Using the I/O Port ..........................................................................................................
10.2.3
Control Registers of the I/O Ports ...............................................................................
10.2.4
Using an I/O Port as an Input Port..............................................................................
10.2.5
Using an I/O Port as an Output Port...........................................................................
10.2.6
Notes on Using the I/O Port.........................................................................................
10.2.7
Statuses of the I/O Ports upon Reset .........................................................................
10.3
GENERAL-PURPOSE INPUT PORT (P0D) ....................................................................................
10.3.1
Configuration of the Input Port ...................................................................................
10.3.2
Using the Input Port ......................................................................................................
10.3.3
Notes on Using the Input Port .....................................................................................
10.3.4
Statuses of the Input Port upon Reset .......................................................................
10.4
GENERAL-PURPOSE OUTPUT PORTS (P0C, P1A, P1D, P2A, P2B, P2C).................................
10.4.1
Configurations of the Output Ports.............................................................................
10.4.2
Using the Output Port ...................................................................................................
10.4.3
Statuses of the Output Port upon Reset ....................................................................
87
87
89
89
92
93
98
98
98
99
99
99
99
100
100
100
100
101
101