User’s Manual U16899EJ2V0UD
10
3.3 Instruction Address Addressing .............................................................................................. 70
3.3.1 Relative addressing ....................................................................................................................... 70
3.3.2 Immediate addressing ................................................................................................................... 71
3.3.3 Table
indirect addressing............................................................................................................... 72
3.3.4 Register addressing ....................................................................................................................... 72
3.4 Operand
Address
Addressing .................................................................................................. 73
3.4.1 Implied addressing......................................................................................................................... 73
3.4.2 Register addressing ....................................................................................................................... 74
3.4.3 Direct
addressing........................................................................................................................... 75
3.4.4 Short
direct addressing .................................................................................................................. 76
3.4.5
Special function register (SFR) addressing.................................................................................... 77
3.4.6 Register
indirect addressing .......................................................................................................... 78
3.4.7 Based
addressing .......................................................................................................................... 79
3.4.8 Based
indexed addressing............................................................................................................. 80
3.4.9 Stack
addressing ........................................................................................................................... 81
CHAPTER 4 PORT FUNCTIONS ........................................................................................................... 82
4.1 Port
Functions ............................................................................................................................ 82
4.2 Port
Configuration...................................................................................................................... 84
4.2.1 Port
0 ............................................................................................................................................. 85
4.2.2 Port
1 ............................................................................................................................................. 89
4.2.3 Port
2 ............................................................................................................................................. 94
4.2.4 Port
3 ............................................................................................................................................. 95
4.2.5 Port
4 ............................................................................................................................................. 97
4.2.6 Port
5 ............................................................................................................................................. 98
4.2.7 Port
6 ............................................................................................................................................. 99
4.2.8 Port
7 ............................................................................................................................................100
4.2.9 Port 12 ..........................................................................................................................................101
4.2.10 Port 13 ..........................................................................................................................................102
4.2.11 Port 14 ..........................................................................................................................................103
4.3 Registers Controlling Port Function ...................................................................................... 104
4.4 Port Function Operations........................................................................................................ 108
4.4.1 Writing
to I/O port..........................................................................................................................108
4.4.2 Reading
from I/O port ...................................................................................................................108
4.4.3 Operations on I/O port ..................................................................................................................108
CHAPTER 5 CLOCK GENERATOR .................................................................................................... 109
5.1 Functions of Clock Generator................................................................................................. 109
5.2 Configuration of Clock Generator .......................................................................................... 109
5.3 Registers Controlling Clock Generator ................................................................................. 111
5.4 System
Clock
Oscillator .......................................................................................................... 118
5.4.1 High-speed
system clock oscillator ...............................................................................................118
5.4.2 Subsystem
clock oscillator............................................................................................................118
5.4.3 When
subsystem
clock is not used...............................................................................................121
5.4.4 Ring-OSC
oscillator ......................................................................................................................121
5.4.5 Prescaler.......................................................................................................................................121
5.5 Clock Generator Operation ..................................................................................................... 122
5.6 Time Required to Switch Between Ring-OSC Clock and High-Speed System Clock ....... 129