Hi,
I have been in trouble with I2C on CC1310. I am using HDC1080 for humidity and temperature.
The report time 1 minute and there is no packet loss.
But there are some unexpected temperature and humidity measurements.
So, I am checking all things.
How can I set port configuration for I2c?
As you know, clock and data for I2C are bidirectional. I am using the port configuration from TIDA00488_TIDA00758_firmware example project.
The following is the setting from your code:
Board_I2C_SDA | PIN_INPUT_EN | PIN_NOPULL | PIN_HYSTERESIS, /* I2C */
Board_I2C_SCL | PIN_INPUT_EN | PIN_NOPULL | PIN_HYSTERESIS, /* I2C */
but, on E2E some example provides the following configuration:
Board_I2C0_SCL0 | PIN_INPUT_EN | PIN_PULLDOWN, /* I2C clock */
Board_I2C0_SDA0 | PIN_INPUT_EN | PIN_PULLDOWN, /* I2C SDA */
Conclusively, there are some unexpected measurement from sensor.
I assume the sensor is working correctly.
Is there a possibility that I2C signal is deteriorated by port configuration?
I need your help urgently.
Thanks in advance.
Baeyoung