Question
How to reduce jitter in SPI (register mode)
Hi all, I am using register mode SPI for communication purposes,
clock is 210Mhz
interrupt is for every 4khz
initialized SPI with HAL format
SPI data rate: 35MBps
when I send data through SPI I can find some jitter inside it. But when I drive the same signal using HAL it doesn't have any jitter. Since HAL uses a lot of timing I can't use the HAL functions, please can anyone help me with this.
I am sending 2 data,8 bits long and this is running in the interrupt. so I am sending SPI as follows.
Thanks in advance.
*(volatile uint8_t*)&SPI1->DR = Wave[0];
*(volatile uint8_t*)&SPI1->DR = Wave[1];
while(SPI1->SR &= SPI_SR_BSY) {}