MISO line on BRKT-STBC-AGM01

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MISO line on BRKT-STBC-AGM01

930件の閲覧回数
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.

ラベル(3)
3 返答(返信)

620件の閲覧回数
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

620件の閲覧回数
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 件の賞賛
返信

620件の閲覧回数
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 件の賞賛
返信