![](http://datasheet.mmic.net.cn/370000/mPD789104A_datasheet_16723218/mPD789104A_12.png)
12
User’s Manual U15075EJ1V0UM00
3.1.2
3.1.3
3.1.4
Processor Registers.................................................................................................................. 61
3.2.1
Control registers ...........................................................................................................................61
3.2.2
General-purpose registers............................................................................................................64
3.2.3
Special function registers (SFRs).................................................................................................65
Instruction Address Addressing.............................................................................................. 68
3.3.1
Relative addressing......................................................................................................................68
3.3.2
Immediate addressing ..................................................................................................................69
3.3.3
Table indirect addressing .............................................................................................................70
3.3.4
Register addressing......................................................................................................................70
Operand Address Addressing.................................................................................................. 71
3.4.1
Direct addressing..........................................................................................................................71
3.4.2
Short direct addressing.................................................................................................................72
3.4.3
Special function register (SFR) addressing..................................................................................73
3.4.4
Register addressing......................................................................................................................74
3.4.5
Register indirect addressing.........................................................................................................75
3.4.6
Based addressing.........................................................................................................................76
3.4.7
Stack addressing..........................................................................................................................76
Internal data memory (internal high-speed RAM) space ..............................................................54
Special function register (SFR) area.............................................................................................54
Data memory addressing..............................................................................................................55
3.2
3.3
3.4
CHAPTER 4 PORT FUNCTIONS........................................................................................................... 77
4.1
4.2
Port Functions ........................................................................................................................... 77
Port Configuration..................................................................................................................... 80
4.2.1
Port 0............................................................................................................................................81
4.2.2
Port 1............................................................................................................................................82
4.2.3
Port 2............................................................................................................................................83
4.2.4
Port 3............................................................................................................................................89
4.2.5
Port 5............................................................................................................................................91
4.2.6
Port 6............................................................................................................................................92
4.2.7
Port 7............................................................................................................................................93
4.2.8
Port 8 (
μ
PD789426, 789436 Subseries only)...............................................................................94
4.2.9
Port 9 (
μ
PD789426, 789436 Subseries only)...............................................................................95
Registers Controlling Port Function........................................................................................ 96
Port Function Operation......................................................................................................... 102
4.4.1
Writing to I/O port........................................................................................................................102
4.4.2
Reading from I/O port .................................................................................................................102
4.4.3
Arithmetic operation of I/O port...................................................................................................102
4.3
4.4
CHAPTER 5 CLOCK GENERATOR.................................................................................................... 103
5.1
5.2
5.3
5.4
Clock Generator Functions .................................................................................................... 103
Clock Generator Configuration.............................................................................................. 103
Registers Controlling Clock Generator................................................................................. 105
System Clock Oscillators ....................................................................................................... 108
5.4.1
Main system clock oscillator.......................................................................................................108