SPRUJ53B April 2024 – September 2024 TMS320F28P550SJ , TMS320F28P559SJ-Q1
To achieve the maximum rated speeds, the following settings must be made. This example assumes that the device is operating at 100MHz.
Set LSPCLK equal to SYSCLK:
ClkCfgRegs.LOSPCP.bit.LSPCLKDIV = 0;
Select the appropriate Pin Mux options in GPIO_CTRL_REGS.
During the SPI configuration procedure:
Set HS_MODE to 1.
SpiaRegs.SPICCR.bit.HS_MODE = 0x1;
Set SPIBRR to 3. SPICLK = LSPCLK/(SPIBRR+1) = 25MHz
SpiaRegs.SPIBRR = 0x3;
There are no other differences in the configuration from normal SPI operation. Sending and receiving data, DMA operation, and interrupts operates without change.