Through the SPI interface, the microcontroller can digitally configure and control the device. Some of the key parameters that can be set via SPI include:
- Operating mode: H-bridge or Half-bridge
- Current limits for protection
- Slew rate
- Enabling or disabling outputs
- Output control using virtual input bits VIN1 and VIN2
But SPI is not used to transmit PWM signals.
The PWM signal must be generated by the microcontroller and physically connected to one of the device’s input pins. SPI only determines which input pin will be used for PWM control, but does not carry the PWM signal itself.
Hope this helps!