
13
User’s Manual U14260EJ3V1UD
5.4.4
5.4.5
5.4.6
5.4.7
5.4.8
5.4.9
Short direct addressing .............................................................................................................
Special function register (SFR) addressing...............................................................................
Register indirect addressing......................................................................................................
Based addressing .....................................................................................................................
Based indexed addressing ........................................................................................................
Stack addressing.......................................................................................................................
88
89
90
91
92
93
CHAPTER 6 PORT FUNCTIONS.....................................................................................................
94
6.1
6.2
Port Functions......................................................................................................................
Port Configuration ...............................................................................................................
6.2.1
Port 0.........................................................................................................................................
6.2.2
Port 1.........................................................................................................................................
6.2.3
Port 2.........................................................................................................................................
6.2.4
Port 3 (
μ
PD780078 Subseries) .................................................................................................
6.2.5
Port 3 (
μ
PD780078Y Subseries)...............................................................................................
6.2.6
Port 4.........................................................................................................................................
6.2.7
Port 5.........................................................................................................................................
6.2.8
Port 6.........................................................................................................................................
6.2.9
Port 7.........................................................................................................................................
6.2.10 Port 8.........................................................................................................................................
Port Function Control Registers ........................................................................................
Port Function Operations....................................................................................................
6.4.1
Writing to I/O port......................................................................................................................
6.4.2
Reading from I/O port ...............................................................................................................
6.4.3
Operations on I/O port ..............................................................................................................
Selection of Mask Option ....................................................................................................
94
97
97
99
100
104
107
110
112
113
115
117
118
125
125
125
125
126
6.3
6.4
6.5
CHAPTER 7 CLOCK GENERATOR ................................................................................................
127
7.1
7.2
7.3
7.4
Clock Generator Functions.................................................................................................
Clock Generator Configuration ..........................................................................................
Clock Generator Control Registers....................................................................................
System Clock Oscillator......................................................................................................
7.4.1
Main system clock oscillator......................................................................................................
7.4.2
Subsystem clock oscillator ........................................................................................................
7.4.3
When subsystem clock is not used ...........................................................................................
Clock Generator Operations ...............................................................................................
7.5.1
Main system clock operations ...................................................................................................
7.5.2
Subsystem clock operations .....................................................................................................
Changing System Clock and CPU Clock Settings............................................................
7.6.1
Time required for switchover between system clock and CPU clock ........................................
7.6.2
System clock and CPU clock switching procedure ...................................................................
127
127
129
133
133
134
137
138
139
140
140
140
141
7.5
7.6
CHAPTER 8 16-BIT TIMER/EVENT COUNTERS 00, 01 .............................................................
142
8.1
8.2
Functions of 16-Bit Timer/Event Counters 00, 01 .............................................................
Configuration of 16-Bit Timer/Event Counters 00, 01.......................................................
142
143