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

latching IO

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







latching IO
PostPosted: Sat Feb 03, 2007 1:46 am     Reply with quote

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







PostPosted: Sat Feb 03, 2007 1:52 am     Reply with quote

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







PostPosted: Sat Feb 03, 2007 4:06 am     Reply with quote

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







PostPosted: Sat Feb 03, 2007 5:39 pm     Reply with quote

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







PostPosted: Sat Feb 03, 2007 6:18 pm     Reply with quote

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.
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