MISO pin behaving abruptly during SPI communication

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

cross mob
Mrinal
Level 4
Level 4
First solution authored 50 replies posted 25 replies posted

Hi!

I have a project in which an SPI master sends four continuous bytes of data to an SPI slave. All four bytes are transferred in one-go without releasing the SS pin. The SS pin is released high after all four bytes are transferred.

The input from the ,master is received correctly by the slave via MOSI pin. However the MISO pin gets glued to high position randomly and corrupts the slave output data. It also appears that the MISO pin goes to high impedance after the SS pin is released. (MISO output voltage slowly ramps down to 0V from initial 5V when SS pin is released)

pastedImage_0.png

(Blue = MISO. Yellow = SS)

Please help

0 Likes
2 Replies
Mrinal
Level 4
Level 4
First solution authored 50 replies posted 25 replies posted

Just noted that after enabling the "median filter" in the slave SPI module, data corruption stops. (Although the MISO signal still goes high impedance after SS release but it does not latch up during active SS period)

What is "median filter"? Why is it needed?

The master SPI is made from 8-bit UDB and takes input from 2MHz clock. The slave SPI is a SCB implementation and data rate is set to 1Mb/s.

0 Likes

Can it be that you are working on a Cypress development kit and your pin is connected to a capacitor on the pcb?

Check with Kit schematics.

Bob

0 Likes