View previous topic :: View next topic |
Author |
Message |
Don P
Joined: 26 Aug 2004 Posts: 23 Location: California
|
16F628 A4 as output ? |
Posted: Wed Jan 05, 2005 11:40 pm |
|
|
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: 1907
|
|
Posted: Wed Jan 05, 2005 11:49 pm |
|
|
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
|
|
Posted: Thu Jan 06, 2005 12:03 am |
|
|
D**n, you're right. Thanks. |
|
|
|