User’s Manual U16227EJ2V0UD 113.3.2 Immediate addressing ....................................................................................................................643.3.3 Table indirect addressing ...............................................................................................................653.3.4 Register addressing........................................................................................................................653.4 Operand Address Addressing .................................................................................................. 663.4.1 Implied addressing .........................................................................................................................663.4.2 Register addressing........................................................................................................................673.4.3 Direct addressing............................................................................................................................683.4.4 Short direct addressing...................................................................................................................693.4.5 Special function register (SFR) addressing ....................................................................................703.4.6 Register indirect addressing ...........................................................................................................713.4.7 Based addressing...........................................................................................................................723.4.8 Based indexed addressing .............................................................................................................733.4.9 Stack addressing ............................................................................................................................74CHAPTER 4 PORT FUNCTIONS........................................................................................................... 754.1 Port Functions............................................................................................................................ 754.2 Port Configuration ..................................................................................................................... 774.2.1 Port 0..............................................................................................................................................784.2.2 Port 1..............................................................................................................................................804.2.3 Port 2..............................................................................................................................................854.2.4 Port 3..............................................................................................................................................864.2.5 Port 6..............................................................................................................................................884.2.6 Port 7..............................................................................................................................................894.2.7 Port 12............................................................................................................................................904.2.8 Port 13............................................................................................................................................914.3 Registers Controlling Port Function........................................................................................ 924.4 Port Function Operations.......................................................................................................... 964.4.1 Writing to I/O port ...........................................................................................................................964.4.2 Reading from I/O port .....................................................................................................................964.4.3 Operations on I/O port ....................................................................................................................96CHAPTER 5 CLOCK GENERATOR ...................................................................................................... 975.1 Functions of Clock Generator .................................................................................................. 975.2 Configuration of Clock Generator............................................................................................ 975.3 Registers Controlling Clock Generator ................................................................................... 995.4 System Clock Oscillator.......................................................................................................... 1065.4.1 X1 oscillator ..................................................................................................................................1065.4.2 Subsystem clock oscillator............................................................................................................1065.4.3 When subsystem clock is not used...............................................................................................1095.4.4 Ring-OSC oscillator ......................................................................................................................1095.4.5 Prescaler ......................................................................................................................................1095.5 Clock Generator Operation ..................................................................................................... 1105.6 Time Required to Switch Between Ring-OSC Clock and X1 Input Clock .......................... 1175.7 Time Required for CPU Clock Switchover ............................................................................ 1185.8 Clock Switching Flowchart and Register Setting ................................................................. 1195.8.1 Switching from Ring-OSC clock to X1 input clock ........................................................................1195.8.2 Switching from X1 input clock to Ring-OSC clock ........................................................................1205.8.3 Switching from X1 input clock to subsystem clock........................................................................121