boncker
Member level 2
i2c pic i2c_read()
Hello guys,
I have a question about I2C communication in PICs. I need to write a C program that makes communication using I2C protocol with another device (i.e. a temperature sensor). If, in the PIC software, I write "i2c_read( )" (after all the declarations before), will the sensor start to send the data to PIC immediately? If yes, how can I get the temperature data and put it in a variable?
I would be glad if you could put some example codes.
Thanks!
Hello guys,
I have a question about I2C communication in PICs. I need to write a C program that makes communication using I2C protocol with another device (i.e. a temperature sensor). If, in the PIC software, I write "i2c_read( )" (after all the declarations before), will the sensor start to send the data to PIC immediately? If yes, how can I get the temperature data and put it in a variable?
I would be glad if you could put some example codes.
Thanks!