4.3.1 Relative addressing .......................................................................................................................... 67
4.3.2 Immediate addressing ...................................................................................................................... 67
4.3.3 Table indirect addressing ................................................................................................................. 68
4.4.1 Implied addressing ........................................................................................................................... 69
4.4.2 Register addressing ......................................................................................................................... 69
4.4.3 Direct addressing ............................................................................................................................. 70
4.4.4 Short direct addressing .................................................................................................................... 71
4.4.5 SFR addressing ................................................................................................................................ 72
4.4.7 Based addressing ............................................................................................................................. 74
4.4.9 Stack addressing .............................................................................................................................. 79
CHAPTER 5 PORT FUNCTIONS ........................................................................................................... 83
5.1 Port Functions .............................................................................................................................. 83
5.2 Port Configuration ........................................................................................................................ 84
5.2.1 Port 0 ................................................................................................................................................ 85
5.2.2 Port 1 ................................................................................................................................................ 85
5.2.3 Port 2 ................................................................................................................................................ 86
5.2.4 Port 3 ................................................................................................................................................ 86
5.2.5 Port 4 ................................................................................................................................................ 86
5.2.6 Port 6 ................................................................................................................................................ 86
5.2.7 Port 7 ................................................................................................................................................ 86
5.2.8 Port 12 .............................................................................................................................................. 87
5.2.9 Port 13 .............................................................................................................................................. 87
5.2.10 Port 14 ............................................................................................................................................ 87
5.2.11 GPIO port ....................................................................................................................................... 87
5.3.2 Port registers (Pxx) ........................................................................................................................... 93
5.4.1 Writing to I/O port ........................................................................................................................... 101
2
Index-