I am having difficulties setting the SysClk so that I can enable SPI to run at 6.4Mhz.
I have tried many different combinations of dividers etc, but have been unable to get it to run at my required speed.
For example, the below causes SPI to run at an inaccurate 8MHz, i.e. it is not stable..possibly a remainder in the division?
SysCtlClockSet(SYSCTL_SYSDIV_4| SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ |SYSCTL_OSC_MAIN);
SSIConfigSetExpClk(SSI0_BASE, SysCtlClockGet(), SSI_FRF_MOTO_MODE_1, SSI_MODE_MASTER, 6400000, 8);
Any advice on how I get my SPI to run at 6.4Mhz, is appreciated. I am using the Tiva C LaunchPad (TM4C123GXL).
Glenn.