![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1168AGF-GAS-AX_datasheet_99857/UPD78F1168AGF-GAS-AX_11.png)
User’s Manual U17894EJ9V0UD
9
3.1.5
Extended special function register (2nd SFR: 2nd Special Function Register) area .................66
3.1.6
Data memory addressing ...........................................................................................................67
3.2
Processor Registers ................................................................................................................74
3.2.1
Control registers .........................................................................................................................74
3.2.2
General-purpose registers..........................................................................................................76
3.2.3
ES and CS registers ...................................................................................................................78
3.2.4
Special function registers (SFRs) ...............................................................................................79
3.2.5
Extended special function registers (2nd SFRs: 2nd Special Function Registers) .....................85
3.3
Instruction Address Addressing ............................................................................................91
3.3.1
Relative addressing....................................................................................................................91
3.3.2
Immediate addressing ................................................................................................................91
3.3.3
Table indirect addressing ...........................................................................................................92
3.3.4
Register direct addressing..........................................................................................................93
3.4
Addressing for Processing Data Addresses.........................................................................94
3.4.1
Implied addressing .....................................................................................................................94
3.4.2
Register addressing ...................................................................................................................94
3.4.3
Direct addressing .......................................................................................................................95
3.4.4
Short direct addressing ..............................................................................................................96
3.4.5
SFR addressing..........................................................................................................................97
3.4.6
Register indirect addressing .......................................................................................................98
3.4.7
Based addressing.......................................................................................................................99
3.4.8
Based indexed addressing .......................................................................................................102
3.4.9
Stack addressing......................................................................................................................103
CHAPTER 4 PORT FUNCTIONS ........................................................................................................104
4.1
Port Functions........................................................................................................................104
4.2
Port Configuration .................................................................................................................107
4.2.1
Port 0........................................................................................................................................108
4.2.2
Port 1........................................................................................................................................114
4.2.3
Port 2........................................................................................................................................120
4.2.4
Port 3........................................................................................................................................122
4.2.5
Port 4........................................................................................................................................123
4.2.6
Port 5........................................................................................................................................132
4.2.7
Port 6........................................................................................................................................134
4.2.8
Port 7........................................................................................................................................137
4.2.9
Port 8........................................................................................................................................138
4.2.10
Port 11......................................................................................................................................139
4.2.11
Port 12......................................................................................................................................140
4.2.12
Port 13......................................................................................................................................143
4.2.13
Port 14......................................................................................................................................145
4.2.14
Port 15......................................................................................................................................149
4.3
Registers Controlling Port Function ....................................................................................150
4.4
Port Function Operations......................................................................................................157
4.4.1
Writing to I/O port .....................................................................................................................157
4.4.2
Reading from I/O port...............................................................................................................157
4.4.3
Operations on I/O port..............................................................................................................157
4.4.4
Connecting to external device with different potential (2.5V, 3 V) ............................................158