gc80c520g CORERIVER Semiconductor, gc80c520g Datasheet - Page 21

no-image

gc80c520g

Manufacturer Part Number
gc80c520g
Description
Eprom / Rom / Romless Based 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
P2SEL (E6h) : P2 Pull-up Control Register
P2 (A0h) : PORT2 Register
P2SEL.7 P2SEL.6 P2SEL.5 P2SEL.4 P2SEL.3 P2SEL.2 P2SEL.1 P2SEL.0
R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0) R/W(0)
R/W(1) R/W(1) R/W(1) R/W(1) R/W(1) R/W(1) R/W(1) R/W(1)
6.5. I/O Ports : PORT2[7:0]
P2.7
Quasi bi-directional port (Intel 8052 Compatible).
Pull-up resistors are switched on/off by changing the value of the P2SEL SFR.
Read-Modify-Write instructions do not read port pin but the port SFR.
PORT2 Description
P2SEL[7:0] :
ANL
P2.6
/
ORL
P2.5
Pull-up resistor Enable
0 = Pull-up resistor ON / 1 = Pull-up resistor Off
PORT2 Pull-up resistor is
/
XRL
P2.4
/
JBC
/
P2.3
CPL
/
INC
P2.2
ON
/
after reset.
DEC
P2.1
/
DJNZ
P2.0
/
MOV PX.Y, C
CPU BUS
Alternative Function Output
/
CLR PX.Y
P2.0
SFR
Digital Input
/
QB
SETB PX.Y
Q
2 OSC
Pulse
MiDAS1.0 Family
Pull-
up
P2SEL.0
[21]

Related parts for gc80c520g