5.3
5.4
Instruction Address Addressing ...................................................................................... 99
5.3.1
5.3.2
5.3.3
5.3.4
Relative addressing ............................................................................................................... 99
Immediate addressing............................................................................................................ 100
Table indirect addressing ...................................................................................................... 101
Register addressing ............................................................................................................... 102
Operand Address Addressing .......................................................................................... 103
5.4.1
5.4.2
5.4.3
5.4.4
5.4.5
5.4.6
5.4.7
5.4.8
5.4.9
Implied addressing ................................................................................................................. 103
Register addressing ............................................................................................................... 104
Direct addressing ................................................................................................................... 105
Short direct addressing.......................................................................................................... 106
Special function register (SFR) addressing .......................................................................... 107
Register indirect addressing .................................................................................................. 108
Based addressing .................................................................................................................. 109
Based indexed addressing .................................................................................................... 110
Stack addressing.................................................................................................................... 110
CHAPTER 6 PORT FUNCTIONS ......................................................................................................... 111
6.1
6.2
Port Functions..................................................................................................................... 111
Port Configuration .............................................................................................................. 116
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
6.2.7
6.2.8
6.2.9
Port 0 ...................................................................................................................................... 116
Port 1 ...................................................................................................................................... 118
Port 2 (µPD78070A) .............................................................................................................. 119
Port 2 (µPD78070AY) ............................................................................................................ 121
Port 3 ...................................................................................................................................... 123
Port 6 ...................................................................................................................................... 124
Port 7 ...................................................................................................................................... 126
Port 9 ...................................................................................................................................... 128
Port 10 .................................................................................................................................... 130
6.2.10 Port 12 .................................................................................................................................... 132
6.2.11 Port 13 .................................................................................................................................... 133
Port Function Control Registers ...................................................................................... 134
Port Function Operations .................................................................................................. 138
6.3
6.4
6.4.1
6.4.2
6.4.3
Writing to input/output port .................................................................................................... 138
Reading from input/output port.............................................................................................. 138
Operations on input/output port............................................................................................. 138
CHAPTER 7 CLOCK GENERATOR .................................................................................................... 139
7.1
7.2
7.3
7.4
Clock Generator Functions ............................................................................................... 139
Clock Generator Configuration ........................................................................................ 140
Clock Generator Control Register.................................................................................... 141
System Clock Oscillator .................................................................................................... 145
7.4.1
7.4.2
7.4.3
7.4.4
Main system clock oscillator.................................................................................................. 145
Subsystem clock oscillator .................................................................................................... 146
Divider..................................................................................................................................... 148
When no subsystem clocks are used ................................................................................... 148
7.5
Clock Generator Operations ............................................................................................. 149
7.5.1
7.5.2
Main system clock operations ............................................................................................... 150
Subsystem clock operations.................................................................................................. 151
17