3.1.4
Data memory addressing .............................................................................................................. 54
3.2
Processor Registers ..................................................................................................................58
3.2.1
Control registers............................................................................................................................ 58
3.2.2
General-purpose registers............................................................................................................. 61
3.2.3
3.3
3.3.1
Relative addressing....................................................................................................................... 66
3.3.2
Immediate addressing ................................................................................................................... 67
3.3.3
Table indirect addressing .............................................................................................................. 68
3.3.4
Register addressing ...................................................................................................................... 68
3.4
3.4.1
Direct addressing .......................................................................................................................... 69
3.4.2
Short direct addressing ................................................................................................................. 70
3.4.3
3.4.4
Register addressing ...................................................................................................................... 72
3.4.5
3.4.6
Based addressing ......................................................................................................................... 74
3.4.7
Stack addressing........................................................................................................................... 74
CHAPTER 4 PORT FUNCTIONS ...........................................................................................................75
4.1
Port Functions............................................................................................................................75
4.2
Port Configuration .....................................................................................................................76
4.2.1
Port 0 ............................................................................................................................................ 77
4.2.2
Port 1 ............................................................................................................................................ 78
4.2.3
Port 2 ............................................................................................................................................ 79
4.2.4
Port 3 ............................................................................................................................................ 84
4.2.5
Port 5 ............................................................................................................................................ 86
4.2.6
Port 6 ............................................................................................................................................ 87
4.2.7
Port 7 ............................................................................................................................................ 89
4.2.8
Port 8 ............................................................................................................................................ 90
4.3
4.4
Port Function Operation............................................................................................................94
4.4.1
Writing to I/O port .......................................................................................................................... 94
4.4.2
Reading from I/O port.................................................................................................................... 94
4.4.3
CHAPTER 5 CLOCK GENERATOR ......................................................................................................95
5.1
Clock Generator Functions.......................................................................................................95
5.2
5.3
5.4
System Clock Oscillators ........................................................................................................101
5.4.1
5.4.2
Subsystem clock oscillator .......................................................................................................... 102
5.4.3
5.4.4
Divider circuit............................................................................................................................... 104
12