Other Parts Discussed in Thread: C2000WARE
Tool/software:
Hello,
I am working on a custom board based on the TMS320F28379D chip and attempting to implement SPI communication with an encoder using the EnDat library.
However, I am currently facing an issue. For SPI communication to work, a PWM clock signal must be generated from GPIO pin 6 and sent to the encoder. At the moment, this PWM signal is not being output. As a result, the spiRxFifoIsr interrupt is not triggered, and the condition endat22Data.dataReady = 1; is never satisfied. Consequently, the program remains stuck in the while (endat22Data.dataReady != 1) {} loop.
Please help me enable the PWM clock output on GPIO6.