Hi
I encountered several issues while using DRV8311P and I need your help
Q1. Before using DRV8311P, read the DEV-STS1 register and the default value obtained is 0x81, indicating that a device error state has occurred
Q2. For PWM, use PWM generation mode; The counting method is Up/Down Mode; PWM_OSC_SYNC used for PWM_OSC_SYNC=2h; Choose complementary PWM; Dead zone configuration is 200ns; Finally, enable PWM. PWM_SYNC is a PWM with a duty cycle of 50% and a 20Khz output from the MCU.
Corresponding register configuration:
PWP_CTRL1: PWM_MODE=11b
DRV_CTRL: TDEAD_CTRL=001b
PWM_STATE=0x777
PWMG_CTRL: PWM_OSC_SYNC=010b; PWMCNTR_MODE=0; PWM_EN=1b;
The waveforms obtained in PWM_SYNC, OUTA, OUTB, and OUTC are as follows
I don't quite understand what clock frequency is used for the PWM generated by DRV8311P at this time? Is it 20M? Does PWM_SYNC_PRD still work for PWP_OSC_SYNC=2h? I don't know how big the CNT corresponding to the cycle is? I'm not sure how to configure the duty cycle
Looking forward to your reply
Thank you.