Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

TMS320F28388D: Chip select for multipal SPI peripheral

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG

I am new to programming TI microcontrollers.  I have a design that has multiple SPI peripherals connected to SPIA.  The part I tried to bring up is connected to SPIA_PTE4 (GPIO61).  Using sysconfig I was able to establish communcations with the part.  However, the second part has chip select SPIA_PTE1 (GPIO19).  When I tried to make a second SPI port on sysconfig, I got a message of "resource conflict."  Further investigation suggests that I need to disable the automatic chip select in the sysconfig for each one and operate them manually by writing a '0' to the individual pin using GPIO_writePin(GPIO61,0).  Is this correct?  My issue is that I cannot figure out how to disable the SPI_PTE pin in sysconfig so I get a buss conflict between the two peripherals when I try to communicate with the second SPI part.  Can you direct me to a tutorial or document that describes the process?  Thanks in advance.

  • Hi Kent,

    Yes, your understanding is correct. We don't have formal documentation on this, but you can assign one SPI_PTEx in the Sysconfig SPI module as the starting CS and then add the additional GPIOs in the Sysconfig HW section. In C code, you can reconfigure the SPI with the different GPIOs as CS. This is a bit of atedious approach.

    Alternatively, generate code from SysConfig, then copy everything into your C file except the GPIO config - that gives you full flexibility to handle the GPIO assignments manually. We have brainstormed methods to add all this functionality into SysConfig itself, but don't want to create confusion around peripheral-specific GPIO config.

    Best Regards,

    Aishwarya