This is probably the culprit:
I have some code to communicate with an SPI flash, it's about the same thing. With breadboard-style wiring, I put in an even larger delay to avoid errors. I suppose you can trim the delay until there is comms error. Probably tweak the GPIO drive settings as well, but I have done so little SPI that I'll leave it to the experts here to offer proper bit banged SPI tips. ![Smile :)]()
Code:
#define SPI_DELAY 10...__delay_us(SPI_DELAY);...Statistics: Posted by katak255 — Fri Oct 24, 2025 4:05 am