
17
User’s Manual U14046EJ3V0UD
5.4
Operand Address Addressing ............................................................................................. 127
5.4.1
Implied addressing ..................................................................................................................... 127
5.4.2
Register addressing ................................................................................................................... 128
5.4.3
Direct addressing ....................................................................................................................... 129
5.4.4
Short direct addressing .............................................................................................................. 130
5.4.5
Special function register (SFR) addressing ............................................................................... 131
5.4.6
Register indirect addressing ...................................................................................................... 132
5.4.7
Based addressing ...................................................................................................................... 133
5.4.8
Based indexed addressing ......................................................................................................... 134
5.4.9
Stack addressing ....................................................................................................................... 135
CHAPTER 6 PORT FUNCTIONS ...................................................................................................... 136
6.1
Port Functions ....................................................................................................................... 136
6.2
Port Configuration ................................................................................................................ 139
6.2.1
Port 0 .......................................................................................................................................... 139
6.2.2
Port 1 .......................................................................................................................................... 141
6.2.3
Port 2 .......................................................................................................................................... 142
6.2.4
Port 3 (
PD780024A, 780034A Subseries) ............................................................................... 145
6.2.5
Port 3 (
PD780024AY, 780034AY Subseries) ........................................................................... 150
6.2.6
Port 4 .......................................................................................................................................... 154
6.2.7
Port 5 .......................................................................................................................................... 155
6.2.8
Port 6 .......................................................................................................................................... 156
6.2.9
Port 7 .......................................................................................................................................... 158
6.3
Port Function Control Registers ......................................................................................... 161
6.4
Port Function Operations ..................................................................................................... 167
6.4.1
Writing to I/O port ....................................................................................................................... 167
6.4.2
Reading from I/O port ................................................................................................................ 167
6.4.3
Operations on I/O port ............................................................................................................... 167
6.5
Selection of Mask Option ..................................................................................................... 168
CHAPTER 7 CLOCK GENERATOR ................................................................................................. 169
7.1
Clock Generator Functions .................................................................................................. 169
7.2
Clock Generator Configuration ........................................................................................... 169
7.3
Clock Generator Control Registers ..................................................................................... 171
7.4
System Clock Oscillator ....................................................................................................... 175
7.4.1
Main system clock oscillator ...................................................................................................... 175
7.4.2
Subsystem clock oscillator ......................................................................................................... 176
7.4.3
When subsystem clock is not used ............................................................................................ 179
7.5
Clock Generator Operations ................................................................................................ 180
7.5.1
Main system clock operations .................................................................................................... 181
7.5.2
Subsystem clock operations ...................................................................................................... 182
7.6
Changing System Clock and CPU Clock Settings ............................................................. 182
7.6.1
Time required for switchover between system clock and CPU clock ......................................... 182
7.6.2
System clock and CPU clock switching procedure .................................................................... 183
CHAPTER 8 16-BIT TIMER/EVENT COUNTER 0 .......................................................................... 184
8.1
Functions of 16-Bit Timer/Event Counter 0 ........................................................................ 184
8.2
Configuration of 16-Bit Timer/Event Counter 0 .................................................................. 185