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.

question about PIC's port

Status
Not open for further replies.

clayofjunk

Junior Member level 2
Joined
Oct 18, 2004
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
200
Forgive me if my question sounds amatuer but i needed an answer.

With referrence to the below diagram, note that PortB is initialized as an output port.
Consider this, in my firmware I will send a HIGH transition to PortB0 and a LOW to PortB1.
Incidently PortB0 is accidently shorted to PortB1 as shown below.
Will PortB0 be pulled down to LOW as well, because of the sinking from PortB1?
 

i dont think that the output of B1 will effect B0. both are configured for output and both of them have an output available. maybe it would damage the PIC.
 

Hi,

Are you conecting physically portb.0 and portb.1?
If the answer is yes that's a short-circuit and could damage the PIC !
Anyway you can connect portb.0 and portb.1 through a resistor (10k) if you really want that!!!

Bye
 

No, this will not damage your PIC, and P0 should pull down P1 so they both will be at Low level. In most cases the outputs use very week pull-up resistors (in reality they are not resistors but MOSFET transistors) of approximate value between 20-50k and the Voh current will be in uA and the Vol current will be in mA.
According to the aboce you can safeky shorten each output to 0V line but it is not safe if it is shorten to +V !!!
 

I think IanP has a point, no offense to hugo and samcheetah.

but i do have one question what is Voh and Vol.
probably u can give a link to read about it.
 

i found it the below diagram would explain what VOH and VOL
 

clayofjunk said:
I think IanP has a point, no offense to hugo and samcheetah

its alright. i agree with IanP. i think i was relating your question to another problem i had in the past. anyway, thanx IanP.
 

IanP said:
No, this will not damage your PIC, and P0 should pull down P1 so they both will be at Low level. In most cases the outputs use very week pull-up resistors (in reality they are not resistors but MOSFET transistors) of approximate value between 20-50k and the Voh current will be in uA and the Vol current will be in mA.
According to the aboce you can safeky shorten each output to 0V line but it is not safe if it is shorten to +V !!!

I do not agree with you. This would be true with an 8051 but not with a PIC.

The PIC can source and sink 20 to 25 mA per pin. As far as I know the outputs are short circuit protected but this condition is no good at all. If possible avoid such configurations.

best regards
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top