MISO line on BRKT-STBC-AGM01

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MISO line on BRKT-STBC-AGM01

868 Views
mohit306
Contributor I

I am using BRKT-STBC-AGM01 breakout board for FXAS21002C 3-axis gyroscope and FXOS8700C 6-axis integrated e-compass. I must use it in SPI mode. Looks like the MOSI and CLK are common for both the sensors. Any reason why the MISO lines are seperate? Can I short them and just use CS to differentiate?

I just want to make sure that I don't get in to any trouble by using common line for MISO for the two sensors.

Labels (3)
3 Replies

558 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Mohit,

The reason is described in the FXOS8700CQ datasheet, page 17:

"FXOS8700CQ does not tri-state the MISO pin when the CS_B pin is deasserted (logic high), which can lead to a bus conflict if multiple slave devices are present on the bus."

So the FXOS8700CQ pulls MISO down to GND, instead of tri-stating, which would block the FXAS21002C from sending data to the master.

Best regards,

Tomas

558 Views
mohit306
Contributor I

That makes it clear. Do you think if I use an OR gate, I can connect both MISO signals to the same micro pin??

if yes, I will strongly recommend having an OR gated MISO output option on the EVM. 

0 Kudos

558 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi Mohit,

Yes, an OR gate is a possible workaround as well as a tri-state buffer with the MISO line and the CS_B line as input to the buffer.

Best regards,

Tomas

0 Kudos