![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1235GK-GAJ-AX_datasheet_99860/UPD78F1235GK-GAJ-AX_12.png)
User’s Manual U19678EJ1V1UD
10
3.4.8 Based indexed addressing ..............................................................................................................143
3.4.9 Stack addressing.............................................................................................................................144
CHAPTER 4 PORT FUNCTIONS ......................................................................................................... 145
4.1 Port Functions ............................................................................................................................ 145
4.2 Port Configuration...................................................................................................................... 151
4.2.1 Port 0...............................................................................................................................................153
4.2.2 Port 1...............................................................................................................................................155
4.2.3 Port 2...............................................................................................................................................157
4.2.4 Port 3...............................................................................................................................................159
4.2.5 Port 4...............................................................................................................................................163
4.2.6 Port 5...............................................................................................................................................166
4.2.7 Port 6...............................................................................................................................................170
4.2.8 Port 7...............................................................................................................................................171
4.2.9 Port 8...............................................................................................................................................179
4.2.10 Port 12...........................................................................................................................................182
4.2.11 Port 14...........................................................................................................................................187
4.2.12 Port 15...........................................................................................................................................190
4.3 Registers Controlling Port Function ........................................................................................ 192
4.4 Port Function Operations .......................................................................................................... 208
4.4.1 Writing to I/O port ............................................................................................................................208
4.4.2 Reading from I/O port......................................................................................................................208
4.4.3 Operations on I/O port.....................................................................................................................208
4.4.4 Connecting to external device with different power potential (2.5 V, 3 V)........................................209
4.5 Settings of Port Mode Register and Output Latch When Using Alternate Function........... 211
4.6 Cautions on 1-bit Manipulation Instruction for Port Register n (Pn) .................................... 222
CHAPTER 5 CLOCK GENERATOR .................................................................................................... 223
5.1 Functions of Clock Generator................................................................................................... 223
5.2 Configuration of Clock Generator ............................................................................................ 224
5.3 Registers Controlling Clock Generator.................................................................................... 227
5.4 System Clock Oscillator ............................................................................................................ 243
5.4.1 X1 oscillator.....................................................................................................................................243
5.4.2 XT1 oscillator (products other than 78K0R/IB3) ..............................................................................243
5.4.3 Internal high-speed oscillator ..........................................................................................................247
5.4.4 Internal low-speed oscillator............................................................................................................247
5.4.5 Prescaler .........................................................................................................................................247
5.5 Clock Generator Operation ....................................................................................................... 248
5.6 Controlling Clock........................................................................................................................ 251