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.

CCS/LAUNCHXL-F28379D: Using GPIO Setup routine to setup SPI Interface

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: TMS320F28379D

Tool/software: Code Composer Studio

Hello,

I'm trying to set up pins for SPI communication between two C2000 launchpads. In short, I want to use the PM_BissC_SystemTest code to receive position values from a Biss encoder, then write these values to an SPI pin, then jump a wire from an SPI write pin to an SPI read pin on another c2000 unit.

According to the "TMS320F2837xD Dual-Core Delfino™ Microcontrollers" manual, GPIO pins 58-61 are set up for SPI communication. However, the control suite example project titled "spi_loopback_cpu1" calls an InitSpiaGpio function which initializes GPIO pins 16-19 for SPI communication. This conflicts with the manual and with Simulink's default SPI pin assignment (58-61). Is this a mistake? Are both sets of pins valid for SPI communication?

Thank you for your help,

Tyler