
Preliminary User’s Manual U16228EJ1V0UD
10
3.2.1
Control registers .............................................................................................................................74
3.2.2
General-purpose registers ..............................................................................................................77
3.2.3
Special Function Registers (SFRs).................................................................................................78
3.3
Instruction Address Addressing...............................................................................................83
3.3.1
Relative addressing ........................................................................................................................83
3.3.2
Immediate addressing ....................................................................................................................84
3.3.3
Table indirect addressing ...............................................................................................................85
3.3.4
Register addressing........................................................................................................................85
3.4
Operand Address Addressing...................................................................................................86
3.4.1
Implied addressing .........................................................................................................................86
3.4.2
Register addressing........................................................................................................................87
3.4.3
Direct addressing............................................................................................................................88
3.4.4
Short direct addressing...................................................................................................................89
3.4.5
Special function register (SFR) addressing ....................................................................................90
3.4.6
Register indirect addressing ...........................................................................................................91
3.4.7
Based addressing...........................................................................................................................92
3.4.8
Based indexed addressing .............................................................................................................93
3.4.9
Stack addressing ............................................................................................................................93
CHAPTER 4 PORT FUNCTIONS............................................................................................................ 94
4.1
Port Functions ............................................................................................................................ 94
4.2
Port Configuration ...................................................................................................................... 96
4.2.1
Port 0..............................................................................................................................................97
4.2.2
Port 1............................................................................................................................................101
4.2.3
Port 2............................................................................................................................................107
4.2.4
Port 3............................................................................................................................................108
4.2.5
Port 4............................................................................................................................................110
4.2.6
Port 5............................................................................................................................................111
4.2.7
Port 6............................................................................................................................................112
4.2.8
Port 7............................................................................................................................................113
4.2.9
Port 12..........................................................................................................................................114
4.2.10
Port 13..........................................................................................................................................115
4.2.11
Port 14..........................................................................................................................................116
4.3
Registers Controlling Port Function....................................................................................... 117
4.4
Port Function Operations ........................................................................................................ 121
4.4.1
Writing to I/O port .........................................................................................................................121
4.4.2
Reading from I/O port ...................................................................................................................121
4.4.3
Operations on I/O port ..................................................................................................................121
CHAPTER 5 CLOCK GENERATOR..................................................................................................... 122
5.1
Functions of Clock Generator ................................................................................................. 122
5.2
Configuration of Clock Generator........................................................................................... 123
5.3
Registers Controlling Clock Generator .................................................................................. 124
5.4
System Clock Oscillator .......................................................................................................... 130
5.4.1
X1 oscillator ..................................................................................................................................130