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

I2C and PORTC general I/O not working...

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



Joined: 31 Mar 2006
Posts: 1

View user's profile Send private message

I2C and PORTC general I/O not working...
PostPosted: Fri Mar 31, 2006 12:00 pm     Reply with quote

I have been using the EX_SLAVE.C example sucessfully for simple I2C communications on a PIC16F777.

In the main(), while(true){} loop, I tried to use the the other PORTC pins for general I/O and it looks like the I2C communications stopped functioning or the interupt stopped firing... anyway it doesn't work.

All I did was put output_low(PIN_C7) in the while loop, and now the I2C inturupt does not get called (at least thats what it looks like).

I have searced the form but with no luck.

I would like to use the other six pins for I/O.
_________________
Thanks,

Jason
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Fri Mar 31, 2006 12:27 pm     Reply with quote

No problem doing that. Post a small test program that demonstrates the problem.
rnielsen



Joined: 23 Sep 2003
Posts: 852
Location: Utah

View user's profile Send private message

PostPosted: Fri Mar 31, 2006 3:25 pm     Reply with quote

Make sure that both SDA and SCL are configured as inputs. Simply do junk = input_c(); and that should do 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