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

    The most basic program for SPI communication

    user_418894472

      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:

         

        SPI1_Start();
        SPI1_SpiUartWriteTxData(82);

         

      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 :(