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
Posted: Fri Mar 31, 2006 12:27 pm
No problem doing that. Post a small test program that demonstrates the problem.
rnielsen
Joined: 23 Sep 2003 Posts: 852 Location: Utah
Posted: Fri Mar 31, 2006 3:25 pm
Make sure that both SDA and SCL are configured as inputs. Simply do junk = input_c(); and that should do it.
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