Failure to send in PWM interrupt using SPI.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Translation_Bot
Community Manager
Community Manager
Community Manager

Hello: Recently, during motor development, I used SPI to control a MOS driver to turn on and off the motor.

The following problem occurs when sending data via SPI in PWM interrupt.

1. Use Cy_SCB_SPI_Transfer function to send, query the sending status, the bit is always in the state of sending, resulting in the program has been stopped here, not in the interrupt send to send can be sent to complete.

2. Using Cy_SCB_SPI_WriteArray function can finish sending in PWM interrupt, but can't read the data received by SPI synchronously.

Thanks. 2923328@qq.com

Mr Wild 24.04.03

smartconx_target@Q!w2e3r4t5y6u7i8o9p0||/t5/TRAVEO-T2G/%E5%9C%A8%E7%94%A8SPI%E5%9C%A8PWM%E4%B8%AD%E6%96%AD%E4%B8%AD%E5%8F%91%E9%80%81%E5%A4%B1%E8%B4%A5/td-p/727700

0 Likes
0 Replies