My motor stall as the attached figure.
I'm using S12ZVML128 on my own PCB.
Here is my test settings.
0. Motor info
6 pole pairs
max rpm : 4000
1. GDU setting
GDUE_GCPE = 1; /* charge pump enable*/
GDUE_GCSE0 = 1; /* enable Current Sense Amplifier 0*/
GDUF = 0xff; /* Flag Register - clear all error flags*/
GDUE_GBOE = 1; /* Boost converter enable*/
GDUCLK2_GCPCD = 2; /* Fbus / 32*/
GDUCTR = 0x13; /* blanking time and overvoltage detection thershold */
GDUDSLVL = 0x77; /* desatuartion level*/
GDUE_GFDE = 1; /* enable FET pre-driver*/
GDUDSE = 0x77; /* Clear Desaturation Error Flags*/
2. PMF setting
PMFCFG0_EDGEA = 1; /*PWM0 and PWM1 are edge-aligned PWMs*/
PMFCFG0_EDGEB = 1; /*PWM2 and PWM3 are edge-aligned PWMs */
PMFCFG0_EDGEC = 1; /*PWM4 and PWM5 are edge-aligned PWMs*/
PMFCFG2_REV0 = 1; /* 01 PWM generator A generates reload event.*/
PMFCFG2_REV1 = 0; /* 01 PWM generator A generates reload event.*/
PMFOUTB = 0x2A; /* Low MOSFETs ON while SW control (Unipolar PWM)*/
PMFCFG3_VLMODE = 0x01; /* Writing to value register zero also writes to value registers one to five*/
PMFFQCA = 0; /* Reload every PWM, Half-cycle disabled, fcore / 1*/
PMFMODA = 2000; /* Switching Frequency : 12.5KHz*/
PMFDTMA = 13;
PMFCFG2 |= 0x3f; /* mask all PWM outputs*/
PMFOUTC_OUTCTL = 0x3f; /* all outputs in Software mode*/
PMFENCA_LDOKA = 1; /* apply PMF Modulo value*/
PMFENCA_RSTRTA = 1; /* 1 = PWM restart at commutation event*/
PMFENCA_PWMENA = 1;
PMFCFG1_ENCE = 1; /* Commutation event input enabled and PMFOUTC, PMFOUTB and MSKn buffered*/
PMFENCA_GLDOKA = 1; /* 0 = Local LDOKA controls buffered registers / 1 = external Load OK controls buffered registers*/
3. Power Supply setting
Trapezoid voltage input from 13V to 22V during 5sec.
observed motor stall condition ;
- Motor speed : 1500RPM ~ 3000RPM (didn't test over 3000RPM)
- Input voltage : over 18V (I know the norminal voltage range 6~18V)
I want to know why motor stall before GHHDF set.
What should I check?