NEC 78K0 User Manual page 11

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

Advertisement

3.3.2
Immediate addressing ....................................................................................................................64
3.3.3
Table indirect addressing ...............................................................................................................65
3.3.4
Register addressing........................................................................................................................65
3.4
Operand Address Addressing .................................................................................................. 66
3.4.1
Implied addressing .........................................................................................................................66
3.4.2
Register addressing........................................................................................................................67
3.4.3
Direct addressing............................................................................................................................68
3.4.4
Short direct addressing...................................................................................................................69
3.4.5
Special function register (SFR) addressing ....................................................................................70
3.4.6
Register indirect addressing ...........................................................................................................71
3.4.7
Based addressing...........................................................................................................................72
3.4.8
Based indexed addressing .............................................................................................................73
3.4.9
Stack addressing ............................................................................................................................74
CHAPTER 4 PORT FUNCTIONS........................................................................................................... 75
4.1
Port Functions............................................................................................................................ 75
4.2
Port Configuration ..................................................................................................................... 77
4.2.1
Port 0..............................................................................................................................................78
4.2.2
Port 1..............................................................................................................................................80
4.2.3
Port 2..............................................................................................................................................85
4.2.4
Port 3..............................................................................................................................................86
4.2.5
Port 6..............................................................................................................................................88
4.2.6
Port 7..............................................................................................................................................89
4.2.7
Port 12............................................................................................................................................90
4.2.8
Port 13............................................................................................................................................91
4.3
Registers Controlling Port Function........................................................................................ 92
4.4
Port Function Operations.......................................................................................................... 96
4.4.1
Writing to I/O port ...........................................................................................................................96
4.4.2
Reading from I/O port .....................................................................................................................96
4.4.3
Operations on I/O port ....................................................................................................................96
CHAPTER 5 CLOCK GENERATOR ...................................................................................................... 97
5.1
Functions of Clock Generator .................................................................................................. 97
5.2
Configuration of Clock Generator............................................................................................ 97
5.3
Registers Controlling Clock Generator ................................................................................... 99
5.4
System Clock Oscillator.......................................................................................................... 106
5.4.1
X1 oscillator ..................................................................................................................................106
5.4.2
Subsystem clock oscillator............................................................................................................106
5.4.3
When subsystem clock is not used...............................................................................................109
5.4.4
Ring-OSC oscillator ......................................................................................................................109
5.4.5
Prescaler ......................................................................................................................................109
5.5
Clock Generator Operation ..................................................................................................... 110
5.6
5.7
Time Required for CPU Clock Switchover ............................................................................ 118
5.8
Clock Switching Flowchart and Register Setting ................................................................. 119
5.8.1
Switching from Ring-OSC clock to X1 input clock ........................................................................119
5.8.2
Switching from X1 input clock to Ring-OSC clock ........................................................................120
5.8.3
Switching from X1 input clock to subsystem clock........................................................................121
User's Manual U16227EJ2V0UD
11

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

78kc1

Table of Contents