SPRUI33H November 2015 – June 2024 TMS320F280040-Q1 , TMS320F280040C-Q1 , TMS320F280041 , TMS320F280041-Q1 , TMS320F280041C , TMS320F280041C-Q1 , TMS320F280045 , TMS320F280048-Q1 , TMS320F280048C-Q1 , TMS320F280049 , TMS320F280049-Q1 , TMS320F280049C , TMS320F280049C-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.