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 support@ccsinfo.com

Help on I/O port C and F

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



Joined: 08 Aug 2006
Posts: 49

View user's profile Send private message

Help on I/O port C and F
PostPosted: Fri Mar 16, 2007 11:42 am     Reply with quote

Hello Everybody,
I am facing a issue to turn ON and OFF two I/O pin.
Here is a code snippet when the outputs are turn ON

output_high(PIN_F0);
output_high(PIN_C1);

Only F0 is on and C1 is off. After this both the outputs are turned off as below

output_low(PIN_F0);
output_low(PIN_C1);


In the next condition again F0 and C1 is turned on as

output_high(PIN_F0);
output_high(PIN_C1);

In this case only C1 is on and F0 is off. After this both the outputs are turned off as below

output_low(PIN_F0);
output_low(PIN_C1);


Any one know the reason. I know it is basic, but I am stuck here.

Thanks

mkr
_________________
Thanks

mkr
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Mar 16, 2007 11:52 am     Reply with quote

Give a detailed description of the external circuits connected to those pins.
Also post the PIC, the oscillator frequency, etc.
kevcon



Joined: 21 Feb 2007
Posts: 142
Location: Michigan, USA

View user's profile Send private message

PostPosted: Fri Mar 16, 2007 12:13 pm     Reply with quote

Are they part of an IF statement?

You might be missing the braces around them.
mkr



Joined: 08 Aug 2006
Posts: 49

View user's profile Send private message

PostPosted: Mon Mar 19, 2007 5:58 am     Reply with quote

Silly of me. I got it solved. I had few directive switches around the code. Analyised them and corected.

Sorry for the trouble.
_________________
Thanks

mkr
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