2026-01-03 12:36 AM
Hi,
In the datasheet of the gyroscope I3G4250D, page 21:
CS: 0: SPI communication mode / I2C disabled
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)
Wating for your response,
Thank you very much.
2026-01-03 7:07 AM
> 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.
2026-01-11 12:40 AM
Hi,
I configured the CS pin PE3 as Low at the beginning and High at the beginning. In both cases, the sensor works. Should I configure the CS pin PE3 as Low at the beginning or High at the beginning? (I want to use SPI). Do you know the mechanism that the sensor detects that we use SPI or I2C? The datasheet of the sensor is not clear at this point.
Thank you very much
2026-01-11 6:46 AM
The datasheet says CS must be low for SPI transactions. When it is high, SPI is idle.