Part Number: TMS320F28027F
Other Parts Discussed in Thread: CONTROLSUITE
Hi team,
My customer is designing sensorless motor drives using F28028F. 2x 115200 bps SCI interfaces are needed. I've provided them with example code simulating one software SCI using GPIO and CPU timer. Software SCI works fine alone. But when motor control related codes are added, software SCI is disturbed. Because motor control rated codes have higher interrupt priority and will disturb timer interrupt which controls the baud rate.
This is the output waveform. The first pic is software SCI alone and the second is with motor control codes. Data sent is 0x55.
I think there might be 2 solutions:
(1) Slow down the baud rate.
(2) Adjust timer interrupt to a higher priority according to sw_prioritized_interrupts example in controlSUITE.
I’m afraid that adjusting timer interrupt priority might cause motor control problems. Are these 2 solutions correct and are there any better solutions?
Thanks so much.
Best regards,
Jingyuan

