Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Disable the Analog comparator on AT89C2051

Status
Not open for further replies.

everyone0

Newbie level 4
Joined
Dec 11, 2012
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
Hello,
I wanted to use pins 1.0 and 1.1 in the AT89C2051 microcontroller as digital pins not analog input pins, so i wanted them to be like the rest of the port 1 pins, but i searched thoroughly through the DataSheet and through the board and couldn't find a register assigned to disable the analog input property of the pins or convert the pins into digital o/p or i/p pins, i am using an 8051 simulator and writing the code in assembly language.
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
47,854
Helped
14,119
Reputation
28,495
Reaction score
12,800
Trophy points
1,393
Location
Bochum, Germany
Activity points
277,754
There's no configuration of Pin 1.0 and 1.1 possible or required. They can be used like the other Port 1 pins without special measures.
 

everyone0

Newbie level 4
Joined
Dec 11, 2012
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,312
There's no configuration of Pin 1.0 and 1.1 possible or required. They can be used like the other Port 1 pins without special measures.
i tried but what happens is weired,they produce no digital output when i configure port 1 as output port, while the rest of the port 1 pins produce the desired output.
 

nandhu015

Advanced Member level 5
Joined
Feb 11, 2006
Messages
1,965
Helped
300
Reputation
600
Reaction score
224
Trophy points
1,353
Location
India
Activity points
9,813
Port1.0 & Port1.1 are open collector..

You need pullup resistors if it is used as digital pins.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top