NEC 78K0 Series User Manual page 127

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

Advertisement

(2) Port registers (P0 to P7, P12 to 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 signal generation sets these registers to 00H.
Symbol
7
6
P0
0
P06
P1
P17
P16
P2
P27
P26
P3
0
0
P4
0
0
0
0
P5
P6
0
0
P7
P77
P76
P12
0
0
0
0
P13
0
0
P14
Pmn
0
Output 0
1
Output 1
CHAPTER 5 PORT FUNCTIONS
Figure 5-27. Format of Port Register
5
4
3
P05
P04
P03
P15
P14
P13
P25
P24
P23
0
0
P33
P43
0
0
0
0
P53
0
0
P63
P75
P74
P73
0
P124
P123
0
0
0
0
0
0
Output data control (in output mode)
Preliminary User's Manual U17260EJ3V1UD
2
1
0
P02
P01
P00
P12
P11
P10
P22
P21
P20
P32
P31
P30
P42
P41
P40
P52
P51
P50
P62
P61
P60
P72
P71
P70
P122
P121
P120
0
0
P130
P141
P140
0
m = 0 to 7, 12 to 14; n = 0 to 7
Input data read (in input mode)
Input low level
Input high level
Address
After reset
FF00H
00H (output latch)
FF01H
00H (output latch)
FF02H
00H (output latch)
FF03H
00H (output latch)
FF04H
00H (output latch)
FF05H
00H (output latch)
FF06H
00H (output latch)
FF07H
00H (output latch)
FF0CH
00H (output latch)
FF0DH
00H (output latch)
FF0EH
00H (output latch)
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
127

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents