UPD78F0138 NEC, UPD78F0138 Datasheet - Page 114

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
(2) Port registers (P0 to P7, P12 to P14)
114
Symbol
P12
P13
P14
These registers write the data that is output from the chip when data is output from a port.
If the data is read in the input mode, the pin level is read. If it is read in the output mode, the value of the output
latch is read.
These registers can be set by a 1-bit or 8-bit memory manipulation instruction.
RESET input clears these registers to 00H (but P2 is undefined).
P0
P1
P2
P3
P4
P5
P6
P7
P17
P27
P77
7
0
7
7
7
0
7
0
7
0
7
0
7
7
0
7
0
7
0
Pmn
0
1
Output 0
Output 1
P06
P16
P26
P76
0
6
6
6
6
0
6
0
6
0
6
0
6
6
0
6
0
6
Output data control (in output mode)
P05
P15
P25
P75
5
5
5
5
0
5
0
5
0
5
0
5
5
0
5
0
5
0
Figure 4-22. Format of Port Register
P04
P14
P24
P74
4
4
4
4
0
4
0
4
0
4
0
4
4
0
4
0
4
0
CHAPTER 4 PORT FUNCTIONS
User’s Manual U16228EJ2V0UD
P03
P13
P23
P33
P43
P53
P63
P73
3
3
3
3
3
3
3
3
3
0
3
0
3
0
m = 0 to 7, 12 to 14; n = 0 to 7
P02
P12
P22
P32
P42
P52
P62
P72
2
2
2
2
2
2
2
2
2
0
2
0
2
0
P141
P01
P11
P21
P31
P41
P51
P61
P71
1
1
1
1
1
1
1
1
1
0
1
0
1
Input low level
Input high level
P120
P130
P140
P00
P10
P20
P30
P40
P50
P60
P70
0
0
0
0
0
0
0
0
0
0
0
Input data read (in input mode)
Address
FF0CH
FF0DH
FF0EH
FF00H
FF01H
FF02H
FF03H
FF04H
FF05H
FF06H
FF07H
00H (output latch)
00H (output latch)
00H (output latch)
00H (output latch)
00H (output latch)
00H (output latch)
00H (output latch)
00H (output latch)
00H (output latch)
00H (output latch)
After reset
Undefined
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R

Related parts for UPD78F0138