Quantcast
Channel: MSP low-power microcontroller forum - Recent Threads
Viewing all articles
Browse latest Browse all 22445

MSP432 and I2C configuration

$
0
0

Hi, 

I'm using a MSP‑EXP432P401R development board with a booster pack EDU MK II.
I noticed some problem with the example software with the I2C configuration, I had to add some __delay_cycles to make it work.

Someone know why ?

Thank you

After:

/* Initialize I2C communication */
    Init_I2C_GPIO();
    __delay_cycles(10000); // bus busy bug
    I2C_init();
    /* Initialize OPT3001 digital ambient light sensor */
    OPT3001_init();
    __delay_cycles(10000);

Before:

/* Initialize I2C communication */
    Init_I2C_GPIO();

    I2C_init();
    /* Initialize OPT3001 digital ambient light sensor */
    OPT3001_init();
    __delay_cycles(100000);


Viewing all articles
Browse latest Browse all 22445

Trending Articles



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