Other Parts Discussed in Thread: DRV8301
Hello. I'm using launchxl2-tms570lc + BoosterXL DRV8301 to drive a PMSM
the motor uses AS5048A as position encoder
This PWM is connected to N2HET1_10 pin on Launch Pad, and I used a very simple N2HET program to monitor its PWM output
INPUT_PIN .equ 10 INPUT_PIN2 .equ 11 ; measure PWM Duty MEA_PWM_DUTY PCNT { irq=OFF,type=RISE2FALL,pin=INPUT_PIN}; ; measure PWM Width MEA_PWM_WIDTH PCNT { irq=ON,type=RISE2RISE,pin=INPUT_PIN2}; LOOP BR { next=MEA_PWM_DUTY,cond_addr=MEA_PWM_DUTY,event=NOCOND};
During measuring, if I didn't power (external power source ) on PMSM, the n2het read correct result; but when I power on to drive the motor, it read wrong result.
I am using SVPWM to drive the motor. My DC voltage is 12 V. When I change my parameter to Vd = 0.0, Vq = 4.0 (V), the read result is occasionally 0x02 or 0x04 and other time is correct; When I changed Vq = 6 (V), the read result is always 0x02. the measurement of PWM width is also incorrect
Below is measured Sensor Output PWM by a scope
Below is the output graph when I didn't power on PMSM