NEC 78K0 User Manual page 13

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0:
Table of Contents

Advertisement

3.2
Processor Registers................................................................................................................. 74
3.2.1
Control registers............................................................................................................................74
3.2.2
General-purpose registers ............................................................................................................78
3.2.3
Special function registers (SFRs)..................................................................................................79
3.3
Instruction Address Addressing............................................................................................. 84
3.3.1
Relative addressing.......................................................................................................................84
3.3.2
Immediate addressing...................................................................................................................85
3.3.3
Table indirect addressing ..............................................................................................................86
3.3.4
Register addressing ......................................................................................................................86
3.4
Operand Address Addressing................................................................................................. 87
3.4.1
Implied addressing ........................................................................................................................87
3.4.2
Register addressing ......................................................................................................................88
3.4.3
Direct addressing ..........................................................................................................................89
3.4.4
Short direct addressing .................................................................................................................90
3.4.5
Special function register (SFR) addressing...................................................................................91
3.4.6
Register indirect addressing..........................................................................................................92
3.4.7
Based addressing .........................................................................................................................93
3.4.8
Based indexed addressing............................................................................................................94
3.4.9
Stack addressing...........................................................................................................................95
CHAPTER 4 PORT FUNCTIONS........................................................................................................... 96
4.1
Port Functions .......................................................................................................................... 96
4.2
Port Configuration .................................................................................................................... 98
4.2.1
Port 0 ............................................................................................................................................99
4.2.2
Port 1 ..........................................................................................................................................103
4.2.3
Port 2 ..........................................................................................................................................108
4.2.4
Port 3 ..........................................................................................................................................109
4.2.5
Port 4 ..........................................................................................................................................111
4.2.6
Port 5 ..........................................................................................................................................112
4.2.7
Port 6 ..........................................................................................................................................113
4.2.8
Port 7 ..........................................................................................................................................116
4.2.9
Port 12 ........................................................................................................................................117
4.2.10 Port 13 ........................................................................................................................................118
4.2.11 Port 14 ........................................................................................................................................119
4.3
Registers Controlling Port Function..................................................................................... 123
4.4
Port Function Operations ...................................................................................................... 128
4.4.1
Writing to I/O port ........................................................................................................................128
4.4.2
Reading from I/O port..................................................................................................................128
4.4.3
Operations on I/O port.................................................................................................................128
CHAPTER 5 EXTERNAL BUS INTERFACE ...................................................................................... 129
5.1
External Bus Interface............................................................................................................ 129
5.2
Registers Controlling External Bus Interface...................................................................... 132
5.3
External Bus Interface Function Timing .............................................................................. 135
5.4
Example of Connection with Memory................................................................................... 140
*
User's Manual U15947EJ2V0UD
13

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

78kf1

Table of Contents