8 Replies Latest reply on Mar 30, 2016 12:31 PM by rola_264706

    The most basic program for SPI communication


      After going through a few application notes and datasheets of the SPI module, I wrote a very basic program to send one bite data through the SPI.


      But the oscilloscope does not show any thing on the MOSI pin.


      (All default settings of the SPI module)


      My program is:




      Now the binary equivalent of 82 should be sent through the MOSI pin, but that pin does not generate pulses at all.


      Where am I going wrong :(