UPD78F0138 NEC, UPD78F0138 Datasheet - Page 11

no-image

UPD78F0138

Manufacturer Part Number
UPD78F0138
Description
(UPD78xxxx) 8-Bit Single-Chip Microcontrollers
Manufacturer
NEC
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
UPD78F0138M1GK-9ET
Manufacturer:
NEC
Quantity:
115
Part Number:
UPD78F0138M5GB
Manufacturer:
NEC
Quantity:
20 000
CHAPTER 4 PORT FUNCTIONS........................................................................................................... 90
CHAPTER 5 CLOCK GENERATOR .................................................................................................... 117
3.2
3.3
3.4
4.1
4.2
4.3
4.4
5.1
5.2
5.3
5.4
Processor Registers .................................................................................................................. 68
3.2.1
3.2.2
3.2.3
Instruction Address Addressing .............................................................................................. 78
3.3.1
3.3.2
3.3.3
3.3.4
Operand Address Addressing .................................................................................................. 81
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5
3.4.6
3.4.7
3.4.8
3.4.9
Port Functions............................................................................................................................ 90
Port Configuration ..................................................................................................................... 92
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.2.9
4.2.10 Port 13..........................................................................................................................................110
4.2.11 Port 14..........................................................................................................................................111
Registers Controlling Port Function...................................................................................... 112
Port Function Operations........................................................................................................ 116
4.4.1
4.4.2
4.4.3
Functions of Clock Generator ................................................................................................ 117
Configuration of Clock Generator.......................................................................................... 117
Registers Controlling Clock Generator ................................................................................. 119
System Clock Oscillator.......................................................................................................... 126
Control registers .............................................................................................................................68
General-purpose registers ..............................................................................................................72
Special Function Registers (SFRs).................................................................................................73
Relative addressing ........................................................................................................................78
Immediate addressing ....................................................................................................................79
Table indirect addressing ...............................................................................................................80
Register addressing........................................................................................................................80
Implied addressing .........................................................................................................................81
Register addressing........................................................................................................................82
Direct addressing............................................................................................................................83
Short direct addressing...................................................................................................................84
Special function register (SFR) addressing ....................................................................................85
Register indirect addressing ...........................................................................................................86
Based addressing...........................................................................................................................87
Based indexed addressing .............................................................................................................88
Stack addressing ............................................................................................................................89
Port 0..............................................................................................................................................93
Port 1..............................................................................................................................................97
Port 2............................................................................................................................................102
Port 3............................................................................................................................................103
Port 4............................................................................................................................................105
Port 5............................................................................................................................................106
Port 6............................................................................................................................................107
Port 7............................................................................................................................................108
Port 12..........................................................................................................................................109
Writing to I/O port .........................................................................................................................116
Reading from I/O port ...................................................................................................................116
Operations on I/O port ..................................................................................................................116
User’s Manual U16228EJ2V0UD
11

Related parts for UPD78F0138