Noise at low velocity with drv8313

To close loop,I purchashed a megnetic sensor as5600. The sensor works well with I2C. However, when I tried the close loop control code, the motor just shaked. Then i decided to check the waveform with oscilloscope. One pwm channel and its’ corresponding motor output is shown as below.


yellow line is the pwm and pink line is output. As I anticipated, they should keep the same waveform(Is this right?), meanwhile they did not. So I suspect there are something wrong with my motor driver DRV8313. What’s your opinion on this phenomenon? Thanks a lot!