CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Pic 16F876, output RA4 not working?

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
elburro1887



Joined: 14 Feb 2006
Posts: 3

View user's profile Send private message

Pic 16F876, output RA4 not working?
PostPosted: Mon Feb 20, 2006 3:01 pm     Reply with quote

i am currently starting to program pics, so i wanted to test the output of the pins RA0 - RA5 with LEDs, but somehow the the pin RA4 isnt outputting anything, and i dont think i fried the pic
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 20, 2006 3:19 pm     Reply with quote

Look in a PIC faq. See answer #85 in this one
http://home.netcom.com/~fastfwd/answers.html
newguy



Joined: 24 Jun 2004
Posts: 1908

View user's profile Send private message

PostPosted: Mon Feb 20, 2006 3:19 pm     Reply with quote

Pin A4 on many PICs is not a normal I/O pin. It is usually an open drain output. You need an external pullup resistor in order to force that output high.
elburro1887



Joined: 14 Feb 2006
Posts: 3

View user's profile Send private message

PostPosted: Mon Feb 20, 2006 3:58 pm     Reply with quote

so there is no other method to output a high state on that pin?
fuzzy



Joined: 26 Feb 2005
Posts: 64

View user's profile Send private message

PostPosted: Mon Feb 20, 2006 4:14 pm     Reply with quote

No thre aren't other methods. you need to pullup that pin.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Feb 20, 2006 4:27 pm     Reply with quote

More FAQs:

See item #3:
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1419&param=en001017

In this one, note that PICs typically have a limit of +8.5v on the pull-up
voltage:
http://www.acroname.com/robotics/info/concepts/opn_clct.html

http://www.mcc-us.com/Open-collectorFAQ.htm
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group