14
CHAPTER 4 CLOCK GENERATOR .................................................................................................
93
4.1
4.2
Configuration and Function..........................................................................................
Control Registers ...........................................................................................................
4.2.1
Standby control register (STBC) .......................................................................................
4.2.2
Oscillation stabilization time specification register (OSTS) .............................................
Clock Generator Operation...........................................................................................
4.3.1
Clock oscillator ...................................................................................................................
4.3.2
Frequency divider...............................................................................................................
Cautions ..........................................................................................................................
4.4.1
When an external clock is input ........................................................................................
4.4.2
When crystal/ceramic oscillation is used ..........................................................................
93
95
95
96
97
97
97
98
98
99
4.3
4.4
CHAPTER 5 PORT FUNCTIONS...................................................................................................... 103
5.1
5.2
Digital Input/Output Port ............................................................................................... 103
Port 0 ............................................................................................................................... 105
5.2.1
Hardware configuration......................................................................................................
5.2.2
Input/output mode/control mode setting............................................................................
5.2.3
Operating status.................................................................................................................
5.2.4
Internal pull-up resistors ....................................................................................................
Port 1 ...............................................................................................................................
5.3.1
Hardware configuration......................................................................................................
5.3.2
Setting I/O mode/control mode..........................................................................................
5.3.3
Operating status.................................................................................................................
Port 2 ...............................................................................................................................
5.4.1
Hardware configuration......................................................................................................
5.4.2
Setting I/O mode/control mode..........................................................................................
5.4.3
Operating status.................................................................................................................
Port 3 ............................................................................................................................... 124
5.5.1
Hardware configuration......................................................................................................
5.5.2
Input/output mode/control mode setting............................................................................
5.5.3
Operating status.................................................................................................................
Port 4 .............................................................................................................................. 132
5.6.1
Hardware Configuration .....................................................................................................
5.6.2
Input/output mode/control mode setting............................................................................
5.6.3
Operating status.................................................................................................................
5.6.4
Internal pull-up resistors ....................................................................................................
Port 5 .............................................................................................................................. 138
5.7.1
Hardware configuration......................................................................................................
5.7.2
Input/output mode/control mode setting............................................................................
5.7.3
Operating status.................................................................................................................
5.7.4
Internal pull-up resistors ....................................................................................................
Port 6 .............................................................................................................................. 144
5.8.1
Hardware configuration......................................................................................................
5.8.2
Setting of I/O mode/control mode .....................................................................................
5.8.3
Operating status.................................................................................................................
5.8.4
Internal pull-up resistors ....................................................................................................
105
106
107
109
111
112
113
114
117
118
120
121
5.3
5.4
5.5
125
127
129
5.6
132
133
134
136
5.7
138
139
140
142
5.8
144
145
146
148