Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CCS/F28M36P63C2: SPI baudrate- Tech ref manual

$
0
0

Part Number:F28M36P63C2

Tool/software: Code Composer Studio

Hello,

I have a query about something i read on the Technical reference manual regarding the C28 SPI interface with regards to setting the SPI Baudrate. I am trying to SPI write to an LCD , with a transfer every 500 ms.

I am trying to decide the appropriate SPI BRR value. and i am following the below steps

#define CPU_FREQ     150E6      // 150MHz
#define SPI_BAUDRATE 2     // 2 Hz
#define LSPCLK_FREQ  (CPU_FREQ/4)
#define SPI_BRR      (LSPCLK_FREQ/SPI_BAUDRATE)-1

Is this accurate?

Thank you,

Srini


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>