Hi Gordon, On my test setup I will sometimes see issues until I add the following line before EUSCI_B_I2C_masterReceiveSingleByte(): EUSCI_B_I2C_clearInterrupt(EUSCI_B0_BASE, EUSCI_B_I2C_RECEIVE_INTERRUPT0 + EUSCI_B_I2C_BYTE_COUNTER_INTERRUPT ); See if this changes your setup any. However the issues seems to be more centered around the slave device not acknowledging the slave address sent. I'm confused about your 7-bit slave address, which is 6A for a write and 6B for a read. Typically the slave address stays the same and just the LSB (read/write bit) changes, 0 for write and 1 for read. This could be a typo or misunderstanding in the way the DriverLib processes read and write operations. Can you provide the specific battery charger IC being used? Regards, Ryan
↧