I am using custom bare-metal application and trying to use TWR_K65 DSPI at maximum baud rate possible, the slave i am using supports upto 80 MHz clocking. I am running system clock at 180 MHz but due to some limitations, OUTDV_2 divider is set to 3 so bus clock is 60 MHz. And in SPI_CTAR0, both PBR (Baud Rate Prescaler) and BR (Baud Rate Scaler) are set to 0 (divided by 2) so we will have SPI Clock:
SPI_CLK = BUS_CLK / (PBR * BR) = 60 MHz ( 2 * 2) = 15 MHz.
Data gets corrupt i set above configuration. But if i set BR (Baud Rate Scaler) to 1 (divided by 3), I receive correct data, but it limits my clock to (10 MHz), I don't know why setting BR to 0 causing this problem, Any help would be highly appreciated.