pdswar
Joined: 18 Jul 2006 Posts: 33 Location: Maryland, USA
|
|
Posted: Mon Sep 18, 2006 7:35 am |
|
|
Not reading the datasheet for TC74 was the source of my errors. I am using TC74A0-5.0VCT but I was copying codes written for TC74A5-5.0VCT
Everything worked when I replaced
i2c_start();
i2c_write(0x9A);
i2c_write(0x00);
i2c_start();
i2c_write(0x9B);
temp = i2c_read(0);
i2c_stop();
with correct address for TC74A0-5.0VCT (changed 0x9A->0x90 and 0x9B->0x91)
i2c_start();
i2c_write(0x90); //For
i2c_write(0x00);
i2c_start();
i2c_write(0x91);
temp = i2c_read(0);
i2c_stop();
[/b]
Thank you all for your help. |
|