hi,
I am facing strange issue making MSP430FR2633 to work with Sensirion SCD30 via eUSCI_B0, I2C Master.
The following is the issue i found:
1. Initially the MSP430 I2C port P1.2 (SDA) and P1.3(SCL) work correctly by having both pull-up to +3.3V. This is before the SCD30 sensor plug in.
2. Next, i just supplied +3.3V to SCD30 Co2 sensor without plug into MCU i2C port. Measured SDA and SCL are both +3.0V
3. Next, I plug in both I2C lines from SCD30 to MSP430FR2633 P1.2 and P1.3. Measured both lines +3.3V.
Everything seems to be alright. However, after i execure my code as per attached, Initially all I2C command write and read is only able to run for 1 round. then thing start to get wrong.
After executing my code, i found SCL line permanently pull LOW. SDA still high. Even if i reset the MCU, (i am using MSP430FR2633 CAPTIVATE sense EVM), i noticed SCL still permanently LOW.
Sensirion_CO2_Sensors_SCD30_Interface_Description.pdf
Sensirion_CO2_Sensors_SCD30_Datasheet.pdf
I am checking with you if you can help me to check on my code to see if this issue is due to clock stretching issue.
Below is the example code for using STM, i have problem convert it to TI MCU format. Any help will helpful. I have no clue why sometime, SCL and SDA both stuck at LOW.
Sensirion_CO2_Sensors_SCD30_Sample_Code_STM32VLDISCOVER_STM32F100.zip
Best Regards,
Kpk