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
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.


Mr Wild 24.04.03


0 Replies