User’s Manual U15400EJ4V0UD
11
3.1.2
Internal data memory space.......................................................................................................... 52
3.1.3
Special function register (SFR) area ............................................................................................. 52
3.1.4
Data memory addressing .............................................................................................................. 53
3.2
Processor Registers .................................................................................................................. 58
3.2.1
Control registers............................................................................................................................ 58
3.2.2
General-purpose registers ............................................................................................................ 61
3.2.3
Special function registers (SFRs).................................................................................................. 62
3.3
Instruction Address Addressing .............................................................................................. 66
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
Operand Address Addressing.................................................................................................. 69
3.4.1
Direct addressing .......................................................................................................................... 69
3.4.2
Short direct addressing ................................................................................................................. 70
3.4.3
Special function register (SFR) addressing................................................................................... 71
3.4.4
Register addressing ...................................................................................................................... 72
3.4.5
Register indirect addressing.......................................................................................................... 73
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
Registers Controlling Port Function........................................................................................ 91
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
Arithmetic operation of I/O port ..................................................................................................... 94
CHAPTER 5 CLOCK GENERATOR ...................................................................................................... 95
5.1
Clock Generator Functions....................................................................................................... 95
5.2
Clock Generator Configuration ................................................................................................ 95
5.3
Registers Controlling Clock Generator ................................................................................... 98
5.4
System Clock Oscillators........................................................................................................ 101
5.4.1
Main system clock oscillator........................................................................................................ 101