gc80c520g CORERIVER Semiconductor, gc80c520g Datasheet - Page 20

no-image

gc80c520g

Manufacturer Part Number
gc80c520g
Description
Eprom / Rom / Romless Based 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
ADCSEL (E2h) : ADC Input Select Register
P1SEL (E5h) : P1 Pull-up Control Register
P1 (90h) : PORT1 Register
P1SEL.7 P1SEL.6 P1SEL.5 P1SEL.4 P1SEL.3 P1SEL.2 P1SEL.1 P1SEL.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(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)
ADIV2
6.5. I/O Ports : PORT1[7:0]
P1.7
Quasi bi-directional port (Intel 8052 Compatible).
The P1.1 / P1.2 / P1.3 pins are available for analog input (ADC input channel 1/2/3).
Pull-up resistors are switched on/off by changing the value of the P1SEL SFR.
The alternative functions are available only when the corresponding SFR bit is “1”.
Read-Modify-Write instructions do not read port pin but the port SFR.
PORT1 Description
If the Port is used as ADC Function, ADC_EN Bit must be Set. Then Internal pull-up become off.
ADC1 : 1 = ADC1 input enable & digital input disable at P1.1.
P1SEL[7:0] :
ADC2 : 1 = ADC2 input enable & digital input disable at P1.2.
ADC3 : 1 = ADC3 input enable & digital input disable at P1.3.
P1.0 = T2, PWM1
ANL
ADIV1
P1.6
/
ORL
ADIV0
P1.5
Pull-up resistor Enable
0 = Pull-up resistor ON
1 = Pull-up resistor Off when ADC_EN(ADCON[7]) = 1
PORT1 Pull-up resistor is
/
XRL
P1.4
/
-
/
JBC
P1.1 = T2EX, ADC1
/
R/W(0) R/W(0) R/W(0) R/W(0)
ADC3
P1.3
CPL
/
INC
ADC2
P1.2
ON
/
after reset.
DEC
ADC1
P1.1
/
/
P1.2 = ADC2
DJNZ
ADC0
P1.0
/
MOV PX.Y, C
/
P1.3 = ADC3
CPU BUS
Alternative Function Output
/
CLR PX.Y
ADC Block Input
/
P1.4 = INT2
P1.1
SFR
Digital Input
/
QB
SETB PX.Y
Q
/
2 OSC
Pulse
P1.5 = INT3
MiDAS1.0 Family
ADC1
/
P1.6 = INT4
Pull-
up
/
P1.7 = INT5
P1SEL.1
[20]

Related parts for gc80c520g