SPI device needs LSBit First


Author Message
retepsnikrep

Senior Member

Joined: 31/12/2007
Location: United Kingdom
Posts: 130
Posted: 10:29am 01 Feb 2023      

I fell down a pothole for days with SPI using a PIC which had slew rate control on by default and hidden in the depths of the register datasheet.

It fell over at any sort of decent speed as the pulses looked like a sinewave!!
Turn off slew rate control and enable hard switching and nice square pulses.