Index-3
CHAPTER 3 CPU ARCHITECTURE ...................................................................................................... 98
3.1 Memory Space .............................................................................................................................. 98
3.1.1 Internal program memory space..................................................................................................... 114
3.1.2 Mirror area...................................................................................................................................... 117
3.1.3 Internal data memory space ........................................................................................................... 119
3.1.4 Special function register (SFR) area .............................................................................................. 120
3.1.5 Extended special function register (2nd SFR: 2nd Special Function Register) area ..................... 120
3.1.6 Data memory addressing ............................................................................................................... 121
3.2 Processor Registers................................................................................................................... 131
3.2.1 Control registers ............................................................................................................................. 131
3.2.2 General-purpose registers.............................................................................................................. 133
3.2.3 ES and CS registers ....................................................................................................................... 135
3.2.4 Special function registers (SFRs) ................................................................................................... 136
3.2.5 Extended special function registers (2nd SFRs: 2nd Special Function Registers) ......................... 142
3.3 Instruction Address Addressing............................................................................................... 151
3.3.1 Relative addressing ........................................................................................................................ 151
3.3.2 Immediate addressing .................................................................................................................... 151
3.3.3 Table indirect addressing ............................................................................................................... 152
3.3.4 Register direct addressing.............................................................................................................. 153
3.4 Addressing for Processing Data Addresses ........................................................................... 154
3.4.1 Implied addressing ......................................................................................................................... 154
3.4.2 Register addressing ....................................................................................................................... 154
3.4.3 Direct addressing ........................................................................................................................... 155
3.4.4 Short direct addressing .................................................................................................................. 156
3.4.5 SFR addressing.............................................................................................................................. 157
3.4.6 Register indirect addressing ........................................................................................................... 158
3.4.7 Based addressing........................................................................................................................... 159
3.4.8 Based indexed addressing ............................................................................................................. 162
3.4.9 Stack addressing............................................................................................................................ 163
CHAPTER 4 PORT FUNCTIONS ......................................................................................................... 164
4.1 Port Functions ............................................................................................................................ 164
4.2 Port Configuration...................................................................................................................... 165
4.2.1 Port 0.............................................................................................................................................. 167
4.2.2 Port 1.............................................................................................................................................. 175
4.2.3 Port 2.............................................................................................................................................. 185
4.2.4 Port 3.............................................................................................................................................. 187
4.2.5 Port 4.............................................................................................................................................. 192
4.2.6 Port 5.............................................................................................................................................. 201
4.2.7 Port 6.............................................................................................................................................. 208