View previous topic :: View next topic |
Author |
Message |
guest93902 Guest
|
latching IO |
Posted: Sat Feb 03, 2007 1:46 am |
|
|
when i do OUTPUT_HIGH(PIN_A3), pin A3 will goes high and latch. For some reason if I do OUTPUT_HIGH(PIN_C3), the output does not latch. How do I make C3 latch?
My program behaves differently when I switch an IO from PIN A3 to PIN C2. |
|
|
GUEST3222 Guest
|
|
Posted: Sat Feb 03, 2007 1:52 am |
|
|
btw, i'm using PIC16F688.
instead of using pin a5, i try to use pin C5 but my program act very differently (latching problem).
For some reason, I can't even use Pin A3. nothing shows up. I added nomclr to fuse list. |
|
|
Ttelmah Guest
|
|
Posted: Sat Feb 03, 2007 4:06 am |
|
|
Turn off the analog inputs.
On PICs, pins in general, are connected to a whole 'plethora' of internal hardware. The digital I/O operations, are only one component. The port C pins, wake up connected to the AD converter, and in some cases, the comparator. These parts need to be disabled, before the pins function for normal I/O.
Best Wishes |
|
|
guest1999 Guest
|
|
Posted: Sat Feb 03, 2007 5:39 pm |
|
|
I tried to use RA3 (also MCLR pin) but it doesn't seem to work. I get no output response. I already set NOMCLR as a fuse. Do I have to use tris? |
|
|
guest 1992 Guest
|
|
Posted: Sat Feb 03, 2007 6:18 pm |
|
|
I found out that RA3 is input only so i'm gonna try to use pin C5.
I'm still having the same problem. pin C5 will not latch like pin A3. Pin A3 will stay on until you use output low on it. |
|
|
|