Skip to main content
Explorer II
January 3, 2026
Question

How to use SPI with gyroscope I3G4250D in the kit STM32F411 Discovery

  • January 3, 2026
  • 1 reply
  • 54 views

Hi, 

In the datasheet of the gyroscope I3G4250D, page 21:

CS: 0: SPI communication mode / I2C disabled

duoc_ngo261_0-1767429026047.png

My question is: I have to configure the CS pin PE3 as Low at the beginning to make the gyroscope understands that I wants to use SPI? (PE3 is CS in the KIT STM32F411 Discovery)

 

duoc_ngo261_1-1767429106880.png

 

Wating for your response,

Thank you very much.

 

    This topic has been closed for replies.

    1 reply

    Super User
    January 3, 2026

    > I have to configure the CS pin PE3 as Low at the beginning to make the gyroscope understands that I wants to use SPI?

    Yes.

    Also be aware that the chip is in I2C mode when the pin is high, which can cause issues if your signals look like valid I2C signals. If you're only using the bus for this chip, no issues.