10
2.3.14
2.3.15
2.3.16
2.3.17
Pin Input/Output Circuits and Handling of Unused Pins .......................................................42
V
PP
...............................................................................................................................................41
IC0...............................................................................................................................................41
IC2...............................................................................................................................................41
NC ...............................................................................................................................................41
2.4
CHAPTER 3 CPU ARCHITECTURE.........................................................................................................47
3.1
Memory Space............................................................................................................................47
3.1.1
Internal program memory space..................................................................................................49
3.1.2
Internal data memory space........................................................................................................50
3.1.3
Special function register (SFR) area ...........................................................................................50
3.1.4
Data memory addressing ............................................................................................................51
Processor Registers ..................................................................................................................53
3.2.1
Control registers..........................................................................................................................53
3.2.2
General-purpose registers...........................................................................................................56
3.2.3
Special function register (SFR) ...................................................................................................57
Instruction Address Addressing ..............................................................................................60
3.3.1
Relative addressing.....................................................................................................................60
3.3.2
Immediate addressing.................................................................................................................61
3.3.3
Table indirect addressing............................................................................................................62
3.3.4
Register addressing ....................................................................................................................62
Operand Address Addressing..................................................................................................63
3.4.1
Direct addressing ........................................................................................................................63
3.4.2
Short direct addressing ...............................................................................................................64
3.4.3
Special function register (SFR) addressing.................................................................................65
3.4.4
Register addressing ....................................................................................................................66
3.4.5
Register indirect addressing........................................................................................................67
3.4.6
Based addressing........................................................................................................................68
3.4.7
Stack addressing.........................................................................................................................68
3.2
3.3
3.4
CHAPTER 4 PORT FUNCTIONS..............................................................................................................69
4.1
4.2
Port Functions............................................................................................................................69
Port Configuration .....................................................................................................................72
4.2.1
Port 0...........................................................................................................................................73
4.2.2
Port 1:
μ
PD789830.....................................................................................................................74
4.2.3
Port 1:
μ
PD78F9831...................................................................................................................75
4.2.4
Port 2...........................................................................................................................................76
4.2.5
Port 3...........................................................................................................................................79
4.2.6
Port 4:
μ
PD78F9831...................................................................................................................80
4.2.7
Port 5...........................................................................................................................................81
Port Function Control Registers ..............................................................................................82
Operation of Port Functions .....................................................................................................85
4.4.1
Writing to I/O port ........................................................................................................................85
4.4.2
Reading from I/O port..................................................................................................................85
4.3
4.4