I am working with an SPI communication setup where one device acts as the SPI Master and another acts as the SPI Slave.
I want to use a third microcontroller to passively monitor the SPI communication. The SPI signals (SCLK, MOSI, and MISO) are connected to this third MCU. This microcontroller is not communicating on the SPI bus; it only needs to detect the rising edge of the SPI clock (SCLK) and read the MOSI and MISO pin levels at that moment.
My goal is to capture both outgoing (MOSI) and incoming (MISO) data at SCLK rising edges without affecting the existing master–slave communication
What is the correct way to configure the third microcontroller to monitor the SPI bus only by detecting SCLK rising edges?
Should I use on an external interrupt triggered by the rising edge of SCLK to read the MOSI and MISO pins?
Thanks in advance for your guidance.
I want to use a third microcontroller to passively monitor the SPI communication. The SPI signals (SCLK, MOSI, and MISO) are connected to this third MCU. This microcontroller is not communicating on the SPI bus; it only needs to detect the rising edge of the SPI clock (SCLK) and read the MOSI and MISO pin levels at that moment.
My goal is to capture both outgoing (MOSI) and incoming (MISO) data at SCLK rising edges without affecting the existing master–slave communication
What is the correct way to configure the third microcontroller to monitor the SPI bus only by detecting SCLK rising edges?
Should I use on an external interrupt triggered by the rising edge of SCLK to read the MOSI and MISO pins?
Thanks in advance for your guidance.
