This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1294NCPDT: SSI0 Clock on TM4C1294NCPDT

Part Number: TM4C1294NCPDT

Hi,

I am working on TIVA C micro-controller part number being TM4C1294NCPDT, I am using  Tivaware peripheral driver library.

While configuring SSI0 module I used the following API

SSIConfigSetExpClk (uint32_t ui32 Base, uint32_t ui32SSIClk, uint32_t ui32 Protocol, uint32_t ui32Mode, uint32_t ui32 BitRate, uint32_t ui32DataWidth)

I am confused with the parameter BitRate, this bit rate will be in terms of which unit, is it Hz or KHz or any other unit.

I am confused on this, please some one rectify my primitive doubt.

Thanks and Regards,

Janardan M 

  • Hello Janardan,

    The SSIConfigSetExpClk parameter of BitRate is in Hz. So if, for example, you want 4MHz SPI clock, you should feed it 4000000. Need 1MHz? Then use 1000000. Etc.

    If you have further SSI doubts, you may want to review our spi_master.c example code from TivaWare package located at [Install Path]\TivaWare_C_Series-2.1.4.178\examples\peripherals\ssi