Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Resource icon

Mplabx -I2C-Temperature sensor TMP102 2015-07-09

Status
Not open for further replies.

NIKITA PATEL

New Member
NIKITA PATEL submitted a new article:

Mplabx -I2C-Temperature sensor TMP102 - using pic24f16ka102 i2c interfacing temperature sensor TMP102

i got ack from the slave bt its not receivng right value of temperature.its receiving continously FF
here is the code.....i need help...

int main()

{
I2C1CONbits.GCEN = 1;
TRISA=0;
// SDA=0;
// SCL=0;
char y;

// unsigned int data2,data1,data3;
unsigned char data1,data2,data3;
int data4,data5,data6;
//while(1){
InitI2C();
//while(1){
I2C_Start();
// AckI2C1();// send start sequence
y = I2C_Write_Byte(0x48);...

Read more about this article...
 
<Off topic>
Nikita is new here and just posted 1 message. Maybe she posted the first one message in wrong place, in the 'Article and Circuits' section, isn't it?
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top