Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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.

Open drain pins in pic microcontroller

Status
Not open for further replies.

Murugesh_89

Full Member level 5
Joined
Nov 23, 2012
Messages
266
Helped
7
Reputation
12
Reaction score
6
Trophy points
1,298
Location
India
Activity points
3,267
Hi,

I am using the PIC18f6310 microcontroller. I know that the pin A4 is open drain output. So i can't able to drive using A4 as like other i/o.

Is there any other pin in pic which is having the same function?


Thanks,
Murugesh
 

Page 190 in datasheet..take care in I2C mode
Selection of any I2C mode with the SSPEN bit set,forces the SCL and SDA pins to be open-drain,provided these pins are programmed to inputs by setting the appropriate TRISC bits. To ensure proper operation of the module, pull-up resistors must be provided externally to the SCL and SDA pins.
 
I did not use SCL and SDA pins for I2C purpose. I just want those two pins as normal digital outputs(SSPEN = 0). so can i have circuit as follows?
SCL pin - 330E - LED(Anode) - LED(Cathode) - GND
SDA pin - 330E - LED(Anode) - LED(Cathode) - GND
 

You can still use A4 as an input and it still works as an output if you provide it a current source from VDD. All an open drain output can't do is produce a current by itself, if you add a pull-up resistor to VDD it still works as a logic output as normal.

Brian.
 

If you are going to use these pins as a IO then u don't need external pullups..
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top