Index-4
4.2.8 Port 7.............................................................................................................................................. 211
4.2.9 Port 8.............................................................................................................................................. 218
4.2.10 Port 9............................................................................................................................................ 222
4.2.11 Port 10.......................................................................................................................................... 227
4.2.12 Port 11.......................................................................................................................................... 231
4.2.13 Port 12.......................................................................................................................................... 234
4.2.14 Port 13.......................................................................................................................................... 239
4.2.15 Port 14.......................................................................................................................................... 241
4.2.16 Port 15.......................................................................................................................................... 249
4.3 Registers Controlling Port Function ........................................................................................ 251
4.4 Port Function Operations .......................................................................................................... 270
4.4.1 Writing to I/O port ........................................................................................................................... 270
4.4.2 Reading from I/O port ..................................................................................................................... 270
4.4.3 Operations on I/O port .................................................................................................................... 270
4.4.4 Connecting to external device with different potential (1.8 V, 2.5 V, 3 V) ....................................... 271
4.5 Settings of Port Mode Register, and Output Latch When Using Alternate Function .......... 273
4.6
Cautions When Using Port Function..................................................................................... 279
4.6.1 Cautions on 1-Bit Manipulation Instruction for Port Register n (Pn) ............................................... 279
4.6.2 Cautions on the pin settings on the products other than 128-pin.................................................... 280
CHAPTER 5 CLOCK GENERATOR .................................................................................................... 282
5.1 Functions of Clock Generator................................................................................................... 282
5.2 Configuration of Clock Generator ............................................................................................ 284
5.3 Registers Controlling Clock Generator.................................................................................... 286
5.4 System Clock Oscillator ............................................................................................................ 302
5.4.1 X1 oscillator.................................................................................................................................... 302
5.4.2 XT1 oscillator.................................................................................................................................. 302
5.4.3 High-speed on-chip oscillator ......................................................................................................... 306
5.4.4 Low-speed on-chip oscillator .......................................................................................................... 306
5.5 Clock Generator Operation ....................................................................................................... 307
5.6 Controlling Clock........................................................................................................................ 309
5.6.1 Example of setting high-speed on-chip oscillator ........................................................................... 309
5.6.2 Example of setting X1 oscillation clock........................................................................................... 310
5.6.3 Example of setting XT1 oscillation clock ........................................................................................ 311
5.6.4 CPU clock status transition diagram............................................................................................... 312
5.6.5 Condition before changing CPU clock and processing after changing CPU clock ......................... 318
5.6.6 Time required for switchover of CPU clock and main system clock ............................................... 320
5.6.7 Conditions before clock oscillation is stopped ................................................................................ 321
CHAPTER 6 TIMER ARRAY UNIT...................................................................................................... 322
6.1 Functions of Timer Array Unit................................................................................................... 324