Hello
I am going to develop a I2C communication and I was wondering if I can use : use fast_IO and set_tris_c
Using the set_tris_c() command, I can decide which pin is input and output. But what happen with a I2C communication?
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Tue Mar 04, 2008 12:37 pm
The compiler inserts code to set the SDA and SCL pins to be inputs,
as required by the PIC data sheet. Don't change the TRIS on the
SDA and SCL pins.
angel
Joined: 19 Oct 2004 Posts: 40
so...
Posted: Thu Mar 06, 2008 8:52 am
so using RC2 and RC3 for a software I2C communication, the code:
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