
User’s Manual U17553EJ4V0UD
9
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 Implied addressing .............................................................................................................................69
3.4.2 Register addressing ...........................................................................................................................70
3.4.3 Direct addressing ...............................................................................................................................71
3.4.4 Short direct addressing ......................................................................................................................72
3.4.5 Special function register (SFR) addressing ........................................................................................73
3.4.6 Register indirect addressing...............................................................................................................74
3.4.7 Based addressing ..............................................................................................................................75
3.4.8 Based indexed addressing.................................................................................................................76
3.4.9 Stack addressing................................................................................................................................77
CHAPTER 4 MEMORY BANK SELECT FUNCTION (
μPD78F0892, 78F0893 ONLY) .................. 78
4.1 Memory Bank................................................................................................................................ 78
4.2 Difference in Representation of Memory Space ....................................................................... 79
4.3 Memory Bank Select Register (BANK)....................................................................................... 80
4.4 Selecting Memory Bank............................................................................................................... 81
4.4.1 Referencing values between memory banks .....................................................................................81
4.4.2 Branching instruction between memory banks...................................................................................83
4.4.3 Subroutine call between memory banks ............................................................................................85
4.4.4 Instruction branch to bank area by interrupt .......................................................................................87
CHAPTER 5 PORT FUNCTIONS ........................................................................................................... 89
5.1 Port Functions .............................................................................................................................. 89
5.2 Port Configuration ....................................................................................................................... 90
5.2.1 Port 0 .................................................................................................................................................91
5.2.2 Port 1 .................................................................................................................................................93
5.2.3 Port 3 .................................................................................................................................................96
5.2.4 Port 4 .................................................................................................................................................98
5.2.5 Port 5 .................................................................................................................................................99
5.2.6 Port 6 ...............................................................................................................................................100
5.2.7 Port 7 ...............................................................................................................................................102
5.2.8 Port 8 ...............................................................................................................................................107
5.2.9 Port 9 ...............................................................................................................................................108
5.2.10 Port 12 ...........................................................................................................................................109
5.2.11 Port 13 ...........................................................................................................................................112
5.3 Registers Controlling Port Function ........................................................................................ 115
5.4 Port Function Operations.......................................................................................................... 122
5.4.1 Writing to I/O port .............................................................................................................................122
5.4.2 Reading from I/O port.......................................................................................................................122
5.4.3 Operations on I/O port......................................................................................................................122
5.5 Cautions on 1-Bit Manipulation Instruction for Port Register n (Pn).................................... 123
CHAPTER 6 CLOCK GENERATOR .................................................................................................... 124
6.1 Functions of Clock Generator................................................................................................... 124