Skip to main content
Visitor II
July 12, 2019
Question

AIS3624DQ Not Functional Unless i2c lines are high.

  • July 12, 2019
  • 2 replies
  • 1079 views

I am using the STEVAL-MKI158V1 eval board which uses the AIS3624DQ. When I deinit the i2c communication to the device the sca and scl pins go low and the AIS stops outputting interupts. I can confirm the interupt pin triggers when the i2c connection is present. The board definitely has power when the i2c is deinitialised. Can anyone coment and confirm this is how the device is designed to act and if there are any work arounds?

I will be using the device in an ultra low power application which means when i put my device in deep sleep it turns off the output at the two i2c pins.

    This topic has been closed for replies.

    2 replies

    ST Employee
    July 15, 2019

    hi @JMari.18​ , one question for you:

    >> When I deinit the i2c communication to the device the sca and scl pins go low

    I2C lines needs pull-up resistors for working properly, and when you de-init the lines you should set them in HiZ configuration (open drain). How do you set the CS line after communication?

    Regards

    JMari.18Author
    Visitor II
    July 15, 2019

    Hi @Eleon BORLINI​ I have set the pins as outputs with a high value and the device will function. However Ive had no luck setting them any other way. what is required to set a pin as "HiZ (Open Drain)"? I'm using an esp32 running micropython, i can set the pin to input, output or open drain with either a pull up, pull down resistor or neither.

    Cheers

    ST Employee
    July 22, 2019

    ​hi, if you set the I2C lines in open drain configuration, and you add pull-up resistors on them, during the I2C communication the line will be driven by you app processor, while when not communicating after the deinit they will be driven by the pull-ups, so will stay high and the device interrupts will work properly. Regards

    ST Employee
    July 23, 2019

    Hi Joel,

    For your information

    https://www.i2c-bus.org/i2c-primer/how-i2c-hardware-works/

    SDA and SCL are open-drain, that is I2C master and slave devices can only drive these lines low or leave them open.

    The termination resistor Rp pulls the line up to Vcc if no I2C device is pulling it down.

    Best Regards,

    Winfred