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

16F628 A4 as output ?

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



Joined: 26 Aug 2004
Posts: 23
Location: California

View user's profile Send private message

16F628 A4 as output ?
PostPosted: Wed Jan 05, 2005 11:40 pm     Reply with quote

Is there something I need to do to make A4 function as a normal I/O output? The simplest code ( tris_a & tris_b set to 0x00, send 0xFF to ports A & B). All go high except A4, which outputs a LOW. The fuses don't seem to relate to A4. The PIC manual talks about options for A4, but I don't find anything in the CCS book that addresses this.
TIA
Don
newguy



Joined: 24 Jun 2004
Posts: 1911

View user's profile Send private message

PostPosted: Wed Jan 05, 2005 11:49 pm     Reply with quote

Can't comment about that particular PIC, but if it's anything like the others, then A4 is open drain.

That bit me once. I wired an LCD up to port A, and didn't notice that A4 was open drain. What a pain that was to find. You can find that info in the section on the individual ports. Look at the diagram of port A, and I'll bet that A4 is mentioned separately.

Hope this helps.
Don P



Joined: 26 Aug 2004
Posts: 23
Location: California

View user's profile Send private message

PostPosted: Thu Jan 06, 2005 12:03 am     Reply with quote

D**n, you're right. Thanks.
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