💾 Archived View for librehacker.com › gemlog › tech › 20210708-0.gmi captured on 2024-07-09 at 00:34:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

-=-=-=-=-=-=-

ff-mcp23s17: Debugging SPI Signals

I've made progress, but the initial test of driving GPIO outputs has not yet been successful. That can mean I am sending the wrong data over SPI, or that the SPI communication is transmitted correctly. For the latter case, a multi-input oscilloscope is helpful. Here is one byte of oscilloscope data I need to analyze:

Testing SPI Signals

The purple signal is the SPI MOSI signal, the green signal is the SPI CLK, and the yellow signal (mostly hidden) is Chip Select.

I discovered today that the Chip Select signal was being driven incorrectly, and fixed that. Tomorrow, God willing, I'll look at the curve characteristics (to confirm my SPI settings are correct). If that looks good, I can check to make sure I am sending the correct bytes of data.