– ii –
3.2.3
Instruction Address Addressing .....................................................................................
3.3.1
Relative Addressing .............................................................................................................
3.3.2
Immediate addressing .........................................................................................................
3.3.3
Table indirect addressing .....................................................................................................
3.3.4
Register addressing.............................................................................................................
Operand Address Addressing .........................................................................................
3.4.1
Implied addressing ..............................................................................................................
3.4.2
Register addressing.............................................................................................................
3.4.3
Direct addressing.................................................................................................................
3.4.4
Short direct addressing........................................................................................................
3.4.5
Special-Function Register (SFR) addressing ......................................................................
3.4.6
Register indirect addressing ................................................................................................
3.4.7
Based addressing ................................................................................................................
3.4.8
Based indexed addressing ..................................................................................................
3.4.9
Stack addressing .................................................................................................................
Special Function Register (SFR) .........................................................................................
37
40
40
41
42
43
44
44
45
46
47
49
50
51
52
52
3.3
3.4
CHAPTER 4
4.1
4.2
PORT FUNCTIONS ....................................................................................................
Port Functions...................................................................................................................
Port Configuration ............................................................................................................
4.2.1
Port 0 ...................................................................................................................................
4.2.2
Port 1 ...................................................................................................................................
4.2.3
Port 3 ...................................................................................................................................
4.2.4
Port 5 ...................................................................................................................................
4.2.5
Port 7 ...................................................................................................................................
4.2.6
Port 10 .................................................................................................................................
Port Function Control Registers .....................................................................................
Port Function Operations.................................................................................................
4.4.1
Writing to input/output port...................................................................................................
4.4.2
Reading from input/output port ............................................................................................
4.4.3
Operations on input/output port ...........................................................................................
53
53
55
55
57
58
59
60
62
63
67
67
67
67
4.3
4.4
CHAPTER 5
5.1
5.2
5.3
5.4
CLOCK GENERATOR ................................................................................................
Clock Generator Functions..............................................................................................
Clock Generator Configuration .......................................................................................
Clock Generator Control Register...................................................................................
System Clock Oscillator...................................................................................................
5.4.1
Main system clock oscillator ................................................................................................
5.4.2
Scaler...................................................................................................................................
Clock Generator Operations ............................................................................................
Changing CPU Clock Settings.........................................................................................
5.6.1
Time required for CPU clock switchover..............................................................................
5.6.2
CPU clock switching procedure ...........................................................................................
69
69
69
71
73
73
75
76
77
77
78
5.5
5.6
CHAPTER 6
6.1
6.2
6.3
8-BIT TIMER/EVENT COUNTERS 5 AND 6 ..............................................................
8-Bit Timer/Event Counters 5 and 6 Functions ..............................................................
8-Bit Timer/Event Counters 5 and 6 Configurations......................................................
8-Bit Timer/Event Counters 5 and 6 Control Registers .................................................
79
80
82
84