Hello,
Why is my SPI data rate coming out at 20Mhz when I'm setting it to 16Mhz?
SSIConfigSetExpClk(SSI0_BASE, 80000000, SSI_FRF_MOTO_MODE_0, SSI_MODE_MASTER, 16000000, 8);
I noticed this from the data sheet:
The equation uses CPSDVSR so you basically multiply the denominator by an even number every time. So does that mean you can't divide SysClk by an odd number? Seems like a dumb questions, but it is odd to me that your data rate as master would be so constrained. I thought I was using a 16Mhz data rate, but I'm not it is actually 20Mhz. I've verified this with the scope below: