SPI Baudrate S32K144 with RTM 2.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI Baudrate S32K144 with RTM 2.0

591 Views
koehlerl
Contributor IV

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

Labels (1)
0 Kudos
0 Replies