Project

General

Profile

SPI Chip Select polarity

Added by David Bowden 14 days ago

I have a SPI device which wants Chip Select to be inverted (low when not in use, high when in use) from "normal" usage. I don't think I'm supposed to share the entire datasheet, but here's a screenshot showing the expected CS level during communications. The device is an Infineon H-Bridge, BTM9021 (The datasheet is for the BTM9010/BTM9011).
Portion of datasheet showing intended Chip Select polarity

I do not see a way to invert the Chip Select signal during normal use, so I end up with the Chip Select inverted, get no MISO response, and cannot communicate with the chip.
Oscilloscope capture showing actual Chip Select polarity

I am aware that it should be possible to implement the Chip Select separately in software, but I haven't figured it out yet. I would appreciate any suggestions on how that could be accomplished.

I also note that polarity control for the SPI chip select doesn't appear to be supported in Waijung 2 either (at least I didn't see it in the documentation -- I haven't used Waijung 2 yet)

David

clipboard-202410080924-zwz1y.png View clipboard-202410080924-zwz1y.png 26 KB Portion of datasheet showing intended Chip Select polarity
clipboard-202410080925-q2agt.png View clipboard-202410080925-q2agt.png 72.6 KB Oscilloscope capture showing actual Chip Select polarity

Replies (2)

RE: SPI Chip Select polarity - Added by David Bowden 14 days ago

Huh -- it looks like I have MOSI and MISO tags reversed on the scope capture above. I must not have been paying attention

RE: SPI Chip Select polarity - Added by Parth Maheshwari (พาร์ท) 12 days ago

Hi David,

Just to confirm, is this issue resolved?

Sincere regards,
Parth

    (1-2/2)