Skip to main content
MGara.1
Associate
Apr 13, 2022 8:24 AM UTC
Question

How to read the state of an output pin?

I'm using STM32L053 to send an SPI data to other compenet.

i don't know if the data has been send or not. I don't have an oscilloscope to see the signal.

what should i do to know if the data is sent correctly or not?

This topic has been closed for replies.

2 replies

KnarfB
Super User
Apr 13, 2022 12:12 PM UTC

External USB logic analyzers start at $10. Or you build one using a FTDI chip https://sigrok.org/wiki/FTDI-LA.

You could read the SPI back by using a 2nd SPI port on the MCU. But even then, you cannot tell if the data on the wire is exactly as it should be.

hth

KnarfB

MGara.1
MGara.1Author
Associate
Apr 13, 2022 12:28 PM UTC

thank you knarfB,