User’s Manual U16899EJ2V0UD103.3 Instruction Address Addressing .............................................................................................. 703.3.1 Relative addressing ....................................................................................................................... 703.3.2 Immediate addressing ................................................................................................................... 713.3.3 Table indirect addressing............................................................................................................... 723.3.4 Register addressing....................................................................................................................... 723.4 Operand Address Addressing .................................................................................................. 733.4.1 Implied addressing......................................................................................................................... 733.4.2 Register addressing....................................................................................................................... 743.4.3 Direct addressing........................................................................................................................... 753.4.4 Short direct addressing .................................................................................................................. 763.4.5 Special function register (SFR) addressing.................................................................................... 773.4.6 Register indirect addressing .......................................................................................................... 783.4.7 Based addressing .......................................................................................................................... 793.4.8 Based indexed addressing............................................................................................................. 803.4.9 Stack addressing ........................................................................................................................... 81CHAPTER 4 PORT FUNCTIONS ........................................................................................................... 824.1 Port Functions ............................................................................................................................ 824.2 Port Configuration...................................................................................................................... 844.2.1 Port 0 ............................................................................................................................................. 854.2.2 Port 1 ............................................................................................................................................. 894.2.3 Port 2 ............................................................................................................................................. 944.2.4 Port 3 ............................................................................................................................................. 954.2.5 Port 4 ............................................................................................................................................. 974.2.6 Port 5 ............................................................................................................................................. 984.2.7 Port 6 ............................................................................................................................................. 994.2.8 Port 7 ............................................................................................................................................1004.2.9 Port 12 ..........................................................................................................................................1014.2.10 Port 13 ..........................................................................................................................................1024.2.11 Port 14 ..........................................................................................................................................1034.3 Registers Controlling Port Function ...................................................................................... 1044.4 Port Function Operations........................................................................................................ 1084.4.1 Writing to I/O port..........................................................................................................................1084.4.2 Reading from I/O port ...................................................................................................................1084.4.3 Operations on I/O port ..................................................................................................................108CHAPTER 5 CLOCK GENERATOR .................................................................................................... 1095.1 Functions of Clock Generator................................................................................................. 1095.2 Configuration of Clock Generator .......................................................................................... 1095.3 Registers Controlling Clock Generator ................................................................................. 1115.4 System Clock Oscillator .......................................................................................................... 1185.4.1 High-speed system clock oscillator...............................................................................................1185.4.2 Subsystem clock oscillator............................................................................................................1185.4.3 When subsystem clock is not used...............................................................................................1215.4.4 Ring-OSC oscillator ......................................................................................................................1215.4.5 Prescaler.......................................................................................................................................1215.5 Clock Generator Operation ..................................................................................................... 1225.6 Time Required to Switch Between Ring-OSC Clock and High-Speed System Clock ....... 129