17
5.2.1
5.2.2
5.2.3
Instruction Address Addressing .......................................................................................... 112
5.3.1
Relative addressing...................................................................................................................... 112
5.3.2
Immediate addressing .................................................................................................................. 113
5.3.3
Table indirect addressing ............................................................................................................. 114
5.3.4
Register addressing ..................................................................................................................... 115
Operand Address Addressing .............................................................................................. 116
5.4.1
Implied addressing ....................................................................................................................... 116
5.4.2
Register addressing ..................................................................................................................... 117
5.4.3
Direct addressing ......................................................................................................................... 118
5.4.4
Short direct addressing ................................................................................................................ 119
5.4.5
Special-Function Register (SFR) addressing ............................................................................... 121
5.4.6
Register indirect addressing......................................................................................................... 122
5.4.7
Based addressing ........................................................................................................................ 123
5.4.8
Based indexed addressing ........................................................................................................... 124
5.4.9
Stack addressing.......................................................................................................................... 124
Control registers ........................................................................................................................... 103
General registers.......................................................................................................................... 106
Special Function Register (SFR).................................................................................................. 108
5.3
5.4
CHAPTER 6 PORT FUNCTIONS.......................................................................................................... 125
6.1
6.2
Port Functions........................................................................................................................ 125
Port Configuration ................................................................................................................. 130
6.2.1
Port 0............................................................................................................................................ 130
6.2.2
Port 1............................................................................................................................................ 132
6.2.3
Port 2 (
μ
PD78058F Subseries) .................................................................................................... 133
6.2.4
Port 2 (
μ
PD78058FY Subseries).................................................................................................. 135
6.2.5
Port 3............................................................................................................................................ 137
6.2.6
Port 4............................................................................................................................................ 138
6.2.7
Port 5............................................................................................................................................ 139
6.2.8
Port 6............................................................................................................................................ 140
6.2.9
Port 7............................................................................................................................................ 142
6.2.10 Port 12.......................................................................................................................................... 144
6.2.11 Port 13.......................................................................................................................................... 145
Port Function Control Registers .......................................................................................... 146
Port Function Operations...................................................................................................... 152
6.4.1
Writing to input/output port ........................................................................................................... 152
6.4.2
Reading from input/output port..................................................................................................... 152
6.4.3
Operations on input/output port.................................................................................................... 153
Selection of Mask Option ...................................................................................................... 153
6.3
6.4
6.5
CHAPTER 7 CLOCK GENERATOR ..................................................................................................... 155
7.1
7.2
7.3
7.4
Clock Generator Functions................................................................................................... 155
Clock Generator Configuration ............................................................................................ 155
Clock Generator Control Register........................................................................................ 157
System Clock Oscillator........................................................................................................ 161
7.4.1
Main system clock oscillator......................................................................................................... 161