
Preliminary User’s Manual U17260EJ3V1UD
10
3.3
Instruction Address Addressing ............................................................................................ 77
3.3.1
Relative addressing................................................................................................................... 77
3.3.2
Immediate addressing ............................................................................................................... 78
3.3.3
Table indirect addressing .......................................................................................................... 79
3.3.4
Register addressing .................................................................................................................. 79
3.4
Operand Address Addressing ................................................................................................ 80
3.4.1
Implied addressing .................................................................................................................... 80
3.4.2
Register addressing .................................................................................................................. 81
3.4.3
Direct addressing ...................................................................................................................... 82
3.4.4
Short direct addressing ............................................................................................................. 83
3.4.5
Special function register (SFR) addressing ............................................................................... 84
3.4.6
Register indirect addressing ...................................................................................................... 85
3.4.7
Based addressing...................................................................................................................... 86
3.4.8
Based indexed addressing ........................................................................................................ 87
3.4.9
Stack addressing....................................................................................................................... 88
CHAPTER 4 MEMORY BANK SELECT FUNCTION
(
PD78F0536, 78F0537, AND 78F0537D ONLY) ......................................................... 89
4.1
Memory Bank............................................................................................................................ 89
4.2
Memory Bank Select Register (BANK)................................................................................... 90
4.3
Selecting Memory Bank........................................................................................................... 91
4.3.1
Referencing values between memory banks............................................................................. 91
4.3.2
Branching instruction between memory banks .......................................................................... 93
4.3.3
Subroutine call between memory banks.................................................................................... 95
4.3.4
Instruction branch to bank area by interrupt ..............................................................................97
CHAPTER 5 PORT FUNCTIONS ........................................................................................................... 99
5.1
Port Functions .......................................................................................................................... 99
5.2
Port Configuration ................................................................................................................. 101
5.2.1
Port 0........................................................................................................................................102
5.2.2
Port 1........................................................................................................................................108
5.2.3
Port 2........................................................................................................................................113
5.2.4
Port 3........................................................................................................................................114
5.2.5
Port 4........................................................................................................................................116
5.2.6
Port 5........................................................................................................................................117
5.2.7
Port 6........................................................................................................................................118
5.2.8
Port 7........................................................................................................................................120
5.2.9
Port 12......................................................................................................................................121
5.2.10
Port 13......................................................................................................................................123
5.2.11
Port 14......................................................................................................................................124
5.3
Registers Controlling Port Function .................................................................................... 125
5.4
Port Function Operations...................................................................................................... 130
5.4.1
Writing to I/O port .....................................................................................................................130
5.4.2
Reading from I/O port...............................................................................................................130
5.4.3
Operations on I/O port..............................................................................................................130
5.5
Settings of Port Mode Register and Output Latch When Using Alternate Function....... 131
CHAPTER 6 CLOCK GENERATOR .................................................................................................... 134