SPI signal @16MHz looks terrible
Posted: Mon Mar 25, 2024 7:54 am
I've created dual SPI @16MHz, connected it's output to the controller itself, pins declared as inputs. I've connected SCK and MOSI to oscilloscope and the signal looks awful. I haven't tried to receive SPI message yet, but it's hardly going to work if it looks that bad.
The connection wires are within 20cm, I've also tried terminating it with a resistor and it sill looks awful. I've also tried to decrease the frequency to 4 MHz, and it sill doesn't look too good. Also tried with pull-ups and pull-downs, open drain ... to no avail.
Does anyone have any suggestion how to improve it?
Edit: also tried putting a capacitor in parallel (100 pF and 10 nF, I have nothing in between at home yet). 100pF doesn't do much, and 10nF almost kills the signal. Also tried leaving SPI pins floating and it looks just as bad.
The connection wires are within 20cm, I've also tried terminating it with a resistor and it sill looks awful. I've also tried to decrease the frequency to 4 MHz, and it sill doesn't look too good. Also tried with pull-ups and pull-downs, open drain ... to no avail.
Does anyone have any suggestion how to improve it?
Edit: also tried putting a capacitor in parallel (100 pF and 10 nF, I have nothing in between at home yet). 100pF doesn't do much, and 10nF almost kills the signal. Also tried leaving SPI pins floating and it looks just as bad.