cancel
Showing results for 
Search instead for 
Did you mean: 

Listening SPI communication between two ICs

muratolguozdemir
Associate
Posted on December 08, 2011 at 22:01

hi everyone,

Two boards communicate via SPI, I try to read what master sends to slave and what slave responds with my STM32 eval board.

I simply connected 3 wires to CLK, CS and MOSI lines of master IC to three GPIO lines of my eval board and configured the lines accordingly. I try to read by polling the FLAG_RXNE, but no data arrives.

My question is: Is it possible to intervene SPI communication between two ICs with STM32100B-Eval board?

I wonder that since SPI communication is duplex, I need to use two SPI modules of STM32100B-Eval, but how?

Can you post an example?

#spi #stm32
1 REPLY 1
Posted on December 08, 2011 at 23:30

You'd need to use two SPI channels in slave mode (ie taking an input clock), sharing a common clock, with one listening to MISO and the other to MOSI, in both cases this would be the attached to the STM32's MOSI pin.

The STM32 is not the ideal device for this, as it is limited to 8 or 16-bit word lengths

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..