AnsweredAssumed Answered

SPI Baudrate S32K144 with RTM 2.0

Question asked by Lutz Köhler on Oct 30, 2018

Hello,

I have this configuration

  .bitsPerSec = 5000000U,
  .whichPcs = LPSPI_PCS0,
  .pcsPolarity = LPSPI_ACTIVE_LOW,
  .isPcsContinuous = false,
  .bitcount = 8U,
  .lpspiSrcClk = 28000000U,
  .clkPhase = LPSPI_CLOCK_PHASE_2ND_EDGE,
  .clkPolarity = LPSPI_SCK_ACTIVE_LOW,
  .lsbFirst = false,
  .transferType = LPSPI_USING_INTERRUPTS,
  .rxDMAChannel = 255,
  .txDMAChannel = 255,
  .callback = NULL,
  .callbackParam = NULL,

 

The function "LPSPI_SetBaudRate" calculate the "bestFreq" = 109375.

This is wrong. The bestFreq is 4666666MHz.

This has been calculated with the EAR 0.86 SDK, what I used bevor.

 

BR

Lutz

Outcomes