About QSPI , logic is inverted

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
pistons7
Level 4
Level 4
50 questions asked 10 likes given 100 sign-ins

I am developing QSI communication with TC3xx.
I use the "IfxQspi_SpiSlave_exchange" function to send data from the master to the slave.

Does the "IfxQspi_SpiSlave_exchange" automatically control CS (chip select) which the level changes high to low?

If the logic is inverted due to circuit design, how should I set CS to change from Low to High?

Please tell me.

0 Likes
2 Replies
Di_W
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 250 solutions authored

There is a field called SLSIS 14:12 rw Slave Mode Slave Select Input Selection

If you want to use an inverse CS pin, could trya  speical GPIO pin for this purpose and disable above Select Input Pin.

dw

0 Likes
cwunder
Employee
Employee
5 likes given 50 likes received 50 solutions authored

Can you clarify if the AURIX is the SPI Master or Slave? As your statement that you are using "IfxQspi_SpiSlave_exchange" function to send data from the master to the slave is contradictory. This function would be use if the AURIX is the slave not the master.

For the master, you can enable the hardware chip select and its polarity in the SSOC register.

cwunder_0-1664995809912.png

If the AURIX is the SPI Slave then the hardware chip select polarity can only be active low.

cwunder_1-1664995921284.png

 

 

0 Likes