Skip to main content
Visitor II
April 6, 2021
Question

I2C implementation between STM32 MCU and sensor using Low-Layer API

  • April 6, 2021
  • 1 reply
  • 905 views

Hello,

Could you share any examples of I2C communication implementation between STM32L011 MCU and temperature sensor using Low-Layer (LL) API? I am trying to read temperature values from temperature & humidity sensor HDC2080. I found a library for this sensor which includes operations with registers and Tx/Rx buffers but I2C communication has to be coded according to specific MCU.

Thank you.

    This topic has been closed for replies.

    1 reply

    ST Employee
    April 7, 2021

    Hi @Indois​ ,

    please consider first that the HDC2080 sensor is from Texas Instrument, so I would suggest you to ask for support (also) in their community.

    I can tell you that there are some example of an ST I2C humidity and temperature sensor (HTS221) connected with STM32L4 MCU, that you can find -for example- in the FP-SNS-ALLMEMS1 firmware function pack, BSP drivers folder (Drivers\BSP\Components\hts221).

    You can also check the STM32CubeL0, i.e. STM32Cube MCU Package for STM32L0 series, where the Low-Layer APIs for the I2C communication should be available.

    Let me know if these suggestions can be helpful for your purpose.

    -Eleon