Quantcast
Channel: MSP low-power microcontrollers
Viewing all articles
Browse latest Browse all 62309

Forum Post: RE: MSP430FR5735 I2C Master receive problems using DriveLib for a battery charger IC

$
0
0
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

Viewing all articles
Browse latest Browse all 62309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>