Hi all,
I have an SPI working at 4.8bps using DMA. The issue is that during transmission, gaps of 3.3us appear between bytes:
sergiverdaguerelausa_0-1690802553552.png
The SPI clock should work at 80MHz, and the DMA at 160MHz, so I don't understand why this delay appears between bytes.
Configuration:
sergiverdaguerelausa_1-1690802553571.png
sergiverdaguerelausa_2-1690802553580.png
sergiverdaguerelausa_3-1690802553603.png
sergiverdaguerelausa_4-1690802553641.png
Code:
/* Initalized clock */
Clock_Ip_Init(&Clock_Ip_aClockConfig[0]);
/* Initalized pin */
Siul2_Port_Ip_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);
/* Initialize interrupt */
IntCtrl_Ip_Init(&IntCtrlConfig_0);
IntCtrl_Ip_ConfigIrqRouting(&intRouteConfig);
/* Initialize DMA IP} Driver */
(void)Dma_Ip_Init(&Dma_Ip_xDmaInitPB);
/* Initalized spi using instance lpspi as a spi master */
Lpspi_Ip_Init(&Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_0_Instance_0_BOARD_InitPeripherals);
/* Master transmits data by async method with DMA */
Lpspi_Ip_AsyncTransmit(&MASTER_EXTERNAL_DEVICE, u8_frame_reset, NULL, sizeof(u8_frame_reset), spi_callback);
I am using S32K312EVB-Q17
Thank you in advance!
Sergi