Hi everyone,
I got Ni8451 and I need to read voltage from ADS7138QRTERQ1 device.
I managed to do it with Arduino uno however I can't do it with 8451 device.
I used NI C++ Example and barley understand how to send the data.
Attaching my Arduino Uno code for reference.
// VOLTAGE OF OUT1
Wire.beginTransmission(0x15); // Adress 7 Bit.
Wire.write (0x08); // Voltage1.
Wire.write (0x11); // Voltage1.
Wire.write (0x03); // Voltage1.
Wire.endTransmission ( ); // end
Wire.beginTransmission(0x15); // Adress 7 Bit.
Wire.write (0x10); // Voltage2.
Wire.write (0xa7); // Voltage2.
//Wire.endTransmission ( ); // end
Wire.requestFrom ( 0x15, 0x04 ) ; // Adress 7 Bit Send 4 byets.
Wire.requestFrom ( 0x15, 0x01 ) ; // Adress 7 Bit Send 1 byets.
while ( Wire.available ( ) ) {
voltage2 = Wire.read ( ) ;
}//*/
Serial.print( "Voltage IN2 is " );
Serial.print( voltage2*15/255 );
Serial.println("");
Attaching the ADS datasheet