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.

TMS320F28386D: How to set SPI in High-speed-mode?

Part Number: TMS320F28386D
Other Parts Discussed in Thread: SYSCONFIG,

Hello everyone, 

I have to configure SPI High Speed Mode for SPI_A and SPI_B by using SysConfig at these pins:

I was following this topic: https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1292130/tms320f28388d-problems-with-spi-and-its-speed

but I have not clear how to configure it. I have to do it manually in the code or it is possible to do through SysConfig by using the Clocktree?

Moreover, from TRM I see this type of configuration:

What type of library is necessary for my microcontroller (TMS320F28386D) to do the configuration through the registers?

Kind regards,

Gianni

  • Hi Gianni,

    There are 2 main items you need in order to use SPI in high speed mode:

    1. Be sure you are enabling high speed SPI mode by setting the HS_MODE bit to '1'. 
      • This can be done in the latest version of SysConfig by clicking the box by "Enable High Speed Mode" and/or by using DriverLib SPI_enableHighSpeedMode(); such as below:
    2. Be sure you are using the correct GPIOs (only select GPIOs can support the speed of SPI high speed mode) - it looks like you are already considering this based on your question.
    3. An additional item is to make sure that if you are communicating with a non-C2000 device, you double check that the other device will agree with the timing requirements of the C2000 (as per the device datasheets - you can refer to the F2838x datasheet SPI timing requirements section).

    I explained more context for these items as well as general SPI high speed mode notes in another thread earlier today as well Slight smile

    Please take a look at that thread and let me know if you have further questions or things are still unclear!

    Best Regards,

    Allison

  • This can be done in the latest version of SysConfig by clicking the box by "Enable High Speed Mode"

    Hello Allison,

    my SysConfig version is 1.19.0.3426 (it is the last version) but the option "Enable High Speed Mode" is missing.

    Is there a way to have available this option or is it located elsewhere?

    Thank you,

    Gianni

  • Hi Gianni,

    My apologies, this was a more recent addition and will be included in the next release which is scheduled for early April. In the mean time, since this is not built into SysConfig you will have to manually configure this bit to set your SPI to high speed mode. 

    Best Regards,

    Allison