SPRUII0F May 2019 – June 2024 TMS320F28384D , TMS320F28384D-Q1 , TMS320F28384S , TMS320F28384S-Q1 , TMS320F28386D , TMS320F28386D-Q1 , TMS320F28386S , TMS320F28386S-Q1 , TMS320F28388D , TMS320F28388S
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.