AlbertHall
- Joined Jun 4, 2014
- 12,346
Thanks. I am aware of what an open-drain output is. You may recall that I am the one who brought it up and quoted the data sheet.Precisely because it is an open drain output. Connecting any kind of load from an open drain output to 0V can have no effect on the chip as no current would flow and use of this signal is optional. From the datasheet:
View attachment 133977
#include "Wire.h"
void setup()
{
Wire.begin();
Serial.begin(9600);
Wire.beginTransmission(0x68);
Wire.write(0x00);
Wire.write(0x00);
Wire.endTransmission();
}
void loop() {
Wire.beginTransmission(0x68);
Wire.write(0x00);
Wire.endTransmission();
Wire.requestFrom(0x68, 1);
byte s=Wire.read();
s=s&0x0f;
Serial.print(s);
delay(10000);
}
Yeah, looks like the chip is blown or the crystal is dead....or something else that none of has thought about. Please do let us know how it turns out.Raymond Genovese
I tried all the steps you told but no results. The code gives an output of '0' every time in the serial console. Looks like the chip is dead. I shall buy a new chip and let you guys know if it works.
Thanks to everyone for your help and guidance. I really appreciate it.