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

i/o operation

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



Joined: 16 Dec 2008
Posts: 2

View user's profile Send private message

i/o operation
PostPosted: Tue Dec 16, 2008 8:26 am     Reply with quote

I am using PIC16f684. I have used following:
Quote:
PORTA.0--led1
PORTA.1--led2
PORTA.5--relay1
PORTA.4--relay2

Problem is when I operate Relay1 using output_high(rel_1), led1 & led2 get automatically on.
So how can change in one PORT pin affect the other pin of same PORT ?
drh



Joined: 12 Jul 2004
Posts: 192
Location: Hemet, California USA

View user's profile Send private message

PostPosted: Tue Dec 16, 2008 9:07 am     Reply with quote

Have you disabled the analog inputs and comparator? It's all in the data sheet.
_________________
David
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