3.2
Processor Registers................................................................................................................. 74
3.2.1
Control registers............................................................................................................................74
3.2.2
General-purpose registers ............................................................................................................78
3.2.3
3.3
3.3.1
Relative addressing.......................................................................................................................84
3.3.2
Immediate addressing...................................................................................................................85
3.3.3
Table indirect addressing ..............................................................................................................86
3.3.4
Register addressing ......................................................................................................................86
3.4
3.4.1
Implied addressing ........................................................................................................................87
3.4.2
Register addressing ......................................................................................................................88
3.4.3
Direct addressing ..........................................................................................................................89
3.4.4
Short direct addressing .................................................................................................................90
3.4.5
3.4.6
3.4.7
Based addressing .........................................................................................................................93
3.4.8
Based indexed addressing............................................................................................................94
3.4.9
Stack addressing...........................................................................................................................95
CHAPTER 4 PORT FUNCTIONS........................................................................................................... 96
4.1
Port Functions .......................................................................................................................... 96
4.2
Port Configuration .................................................................................................................... 98
4.2.1
Port 0 ............................................................................................................................................99
4.2.2
Port 1 ..........................................................................................................................................103
4.2.3
Port 2 ..........................................................................................................................................108
4.2.4
Port 3 ..........................................................................................................................................109
4.2.5
Port 4 ..........................................................................................................................................111
4.2.6
Port 5 ..........................................................................................................................................112
4.2.7
Port 6 ..........................................................................................................................................113
4.2.8
Port 7 ..........................................................................................................................................116
4.2.9
Port 12 ........................................................................................................................................117
4.2.10 Port 13 ........................................................................................................................................118
4.2.11 Port 14 ........................................................................................................................................119
4.3
4.4
Port Function Operations ...................................................................................................... 128
4.4.1
Writing to I/O port ........................................................................................................................128
4.4.2
Reading from I/O port..................................................................................................................128
4.4.3
Operations on I/O port.................................................................................................................128
5.1
External Bus Interface............................................................................................................ 129
5.2
5.3
5.4
*
User's Manual U15947EJ2V0UD
13