Index-2
3.1.4 Special function register (SFR) area ................................................................................................ 33
3.1.5 Extended special function register (2nd SFR: 2nd Special Function Register) area ........................ 33
3.1.6 Data memory addressing ................................................................................................................. 34
3.2 Processor Registers ..................................................................................................................... 35
3.2.1 Control registers ............................................................................................................................... 35
3.2.2 General-purpose registers ................................................................................................................ 37
3.2.3 ES and CS registers ......................................................................................................................... 38
3.2.4 Special function registers (SFRs) ..................................................................................................... 39
3.2.5 Extended special function registers (2nd SFRs: 2nd Special Function Registers) ........................... 43
3.3 Instruction Address Addressing ................................................................................................. 48
3.3.1 Relative addressing .......................................................................................................................... 48
3.3.2 Immediate addressing ...................................................................................................................... 48
3.3.3 Table indirect addressing ................................................................................................................. 49
3.3.4 Register indirect addressing ............................................................................................................. 49
3.4 Addressing for Processing Data Addresses ............................................................................. 50
3.4.1 Implied addressing ........................................................................................................................... 50
3.4.2 Register addressing ......................................................................................................................... 50
3.4.3 Direct addressing ............................................................................................................................. 51
3.4.4 Short direct addressing .................................................................................................................... 52
3.4.5 SFR addressing ................................................................................................................................ 53
3.4.6 Register indirect addressing ............................................................................................................. 54
3.4.7 Based addressing ............................................................................................................................. 55
3.4.8 Based indexed addressing ............................................................................................................... 59
3.4.9 Stack addressing .............................................................................................................................. 60
CHAPTER 4 PORT FUNCTIONS ........................................................................................................... 64
4.1 Port Functions .............................................................................................................................. 64
4.2 Port Configuration ........................................................................................................................ 64
4.2.1 Port 1 ................................................................................................................................................ 65
4.2.2 Port 2 ................................................................................................................................................ 70
4.2.3 Port 3 ................................................................................................................................................ 73
4.2.4 Port 4 ................................................................................................................................................ 79
4.2.5 Port 6 ................................................................................................................................................ 80
4.2.6 Port 12 .............................................................................................................................................. 81
4.2.7 Port 13 .............................................................................................................................................. 82
4.3 Registers Controlling Port Function .......................................................................................... 83
4.3.1 Port mode registers (PMxx) .............................................................................................................. 85
4.3.2 Port registers (Pxx) ........................................................................................................................... 86
4.3.3 Pull-up resistor option registers (PUxx) ............................................................................................ 87
4.3.4 Port mode control register 1 (PMC1) (24-pin products only) ............................................................ 88
4.3.5 A/D port configuration register (ADPC) ............................................................................................ 89