Hello,
I want to write a .srec file to the EEPROM of the bq40z50 using the USB 8451 interface. For this, i want to communicate with the SMBus of the device using the LabVIEW example "General I2C write.vi". My idea is to read the file in text format (as a string in LabVIEW) and convert it to a byte array, so that every entry in the array stands for the ascii value of a character in the text file. To communicate with the USB 8451, i use the clock rate 80 kHz (tried 100 kHz before), I/O Voltage Level 3.3 V (can´t change this without getting an error message), I2CPullup to false, timeout 35ms, address size 7 bits.
I dont know which device address to use. The default address is 0x50, but i tried various values i found in data sheets. I think because of this, i get the error 301742:
NI-845x: The slave did not acknowledge an address and direction byte transmitted by the I2C master. Reasons include the incorrect address set in the I2C configuration or the incorrect use of the 7-bit address. When entering an address to access a 7-bit device, do not include the direction bit. The NI-845x Basic I2C API internally sets the direction bit to the correct value, depending on the function (write or read). If your datasheet specfies the 7-bit device address as a byte, discard the direction bit (bit 0) and right-shift the byte value by one to create the 7-bit address.
Can you tell me if my attempt is correct? What device address should I use? Is it possible at all to use this example for SMBus devices?
Many thanks
Sven