Need code help for I2C in Pic16f877

Thread Starter

RRITESH KAKKAR

Joined Jun 29, 2010
2,829
Hi,

I need help for writing code for I2C in C lang for PIC16F877. i have readied the working of SCL and SDA but i have no idea how to start programming of it i am using MAP lab Hi-tech C compiler....


Thanks
 

t06afre

Joined May 11, 2009
5,934
Hi,

I need help for writing code for I2C in C lang for PIC16F877. i have readied the working of SCL and SDA but i have no idea how to start programming of it i am using MAP lab Hi-tech C compiler....


Thanks
Have you looked at the examples that follows HI-TEch C. Also what kind of reading have you done. Microchip has a good PDF tutorial on I2C. And then of course the datasheet should also be a good source of information.
 

BMorse

Joined Sep 26, 2009
2,675
I had issues using I2C and SPI in Hi-Tech C (lite version).... I ended up just Bit Banging the I2C and SPI routines I used.... What do you need to communicate with via I2C??
 
Top