
Preliminary User’s Manual U19111EJ2V1UD
10
3.2.3 Special function registers (SFRs).................................................................................................... 83
3.3 Instruction Address Addressing................................................................................................. 88
3.3.1 Relative addressing......................................................................................................................... 88
3.3.2 Immediate addressing..................................................................................................................... 89
3.3.3 Table indirect addressing ................................................................................................................ 90
3.3.4 Register addressing ........................................................................................................................ 91
3.4 Operand Address Addressing .................................................................................................... 91
3.4.1 Implied addressing .......................................................................................................................... 91
3.4.2 Register addressing ........................................................................................................................ 92
3.4.3 Direct addressing ............................................................................................................................ 93
3.4.4 Short direct addressing ................................................................................................................... 94
3.4.5 Special function register (SFR) addressing ..................................................................................... 95
3.4.6 Register indirect addressing............................................................................................................ 96
3.4.7 Based addressing ........................................................................................................................... 97
3.4.8 Based indexed addressing .............................................................................................................. 98
3.4.9 Stack addressing............................................................................................................................. 99
CHAPTER 4 PORT FUNCTIONS ......................................................................................................... 100
4.1 Port Functions ............................................................................................................................ 100
4.2 Port Configuration...................................................................................................................... 106
4.2.1 Port 0 .............................................................................................................................................107
4.2.2 Port 1 .............................................................................................................................................110
4.2.3 Port 2 .............................................................................................................................................122
4.2.4 Port 3 .............................................................................................................................................128
4.2.5 Port 4 .............................................................................................................................................134
4.2.6 Port 6 .............................................................................................................................................137
4.2.7 Port 7 .............................................................................................................................................142
4.2.8 Port 12 ...........................................................................................................................................143
4.3 Registers Controlling Port Function ........................................................................................ 148
4.4 Port Function Operations .......................................................................................................... 160
4.4.1 Writing to I/O port ...........................................................................................................................160
4.4.2 Reading from I/O port.....................................................................................................................160
4.4.3 Operations on I/O port....................................................................................................................160
4.5 Settings of Port Mode Register and Output Latch When Using Alternate Function........... 161
4.6 Cautions on 1-Bit Manipulation Instruction for Port Register n (Pn).................................... 170
CHAPTER 5 CLOCK GENERATOR .................................................................................................... 171
5.1 Functions of Clock Generator................................................................................................... 171
5.2 Configuration of Clock Generator ............................................................................................ 172
5.3 Registers Controlling Clock Generator.................................................................................... 175
5.4 System Clock Oscillator ............................................................................................................ 186
5.4.1 X1 oscillator....................................................................................................................................186
5.4.2 XT1 oscillator .................................................................................................................................186
5.4.3 When subsystem clock is not used ................................................................................................189
5.4.4 Internal high-speed oscillator .........................................................................................................189
5.4.5 Internal low-speed oscillator...........................................................................................................189
5.4.6 Prescaler ........................................................................................................................................189
5.5 Clock Generator Operation ....................................................................................................... 190