This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Delfino F28377D microcontroller - Hi Speed SPI configuration

Other Parts Discussed in Thread: AM3352

Hi,

We have SPI interface between Delfino F28377D microcontroller and Sitara AM3352 processor in our project. Here Delfino act as SLAVE device and we are trying to establish SPI communication in high speed mode.

As per data sheet (TMS320F2837spruhm8c_TechRefManual.pdf), we found that HS_MODE bit of SPICCR Register needs to be set. But in data sheet, we  are unable to find HS_MODE bit in SPICCR Register

17.9.2 Configuring the SPI for High-Speed Mode
In order to achieve 40 MHz full-duplex operation, the following settings must be made. This example
assumes that the device is operating at 200 MHz.
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 SPICCR.HS_MODE to 1.
SpiaRegs.SPICCR.bit.HS_MODE = 0x1;
Set SPIBRR to 4. SPICLK = LSPCLK/(SPIBRR+1) = 40 MHz
SpiaRegs.SPIBRR = 0x4;
There are no other differences in the configuration from normal SPI mode. Sending and receiving data is
also the same.

Also we are unable to find Hi speed mode SPI communication example code in controlsuit folder.

Could anyone help us on how to configure the Delfino SPI in Hi-Speed operation in slave mode?

 

  • Aditya, 

    HS_MODE is bit 5 of the SPICCR Register. I will get this resolved in the next TRM Revision. 

    Please follow the instructions above in the TRM for setting up the SPI in HS_MODE. as the instructions state, the operation/configuration is no different than in normal SPI modes with the exception of setting the HS_MODE bit, and selecting the HS_MODE capable GPIO pins in the GPIO Mux.

    Thanks,
    Mark