Part Number: TMS320F28388D
Other Parts Discussed in Thread: TMDSCNCD28388D, C2000WARE
Hi all,
I am using a TMDSCNCD28388D controlCARD as an SPI slave for controlling a power converter. The application is receiving references from a top-level control unit (SPI master) and generate the modulation and PWM signals in the DSP to drive the IGBTs, and at the same time, the DSP sends back analog measurements and different faults feedback signals to the main controller to compute the new setpoints. This application may require a number of words larger than 16 to exchange all the variables needed, especially when having more than one converter controlled by the same unit.
Leaving the application on the side, the focus is on how to achieve an SPI transmission of a number of words larger than 16. I have tried both using FIFO and non-FIFO modes (using the functions SPI_writeDataBlockingFIFO/SPI_readDataBlockingFIFO and SPI_writeDataBlockingNonFIFO/SPI_readDataBlockingNonFIFO, respectively), and I always find a limitation when the number of words is larger than 16. With 16 words or less, the communication works as intended. But I cannot succeed when sending/receiving a higher number of words, can someone help with this?
As an addition, SPI interrupts are preferably avoided as EtherCAT communication is also used and it has the top priority.
Thank you in advance! Best regards,
\Miguel