Tool/software: Code Composer Studio
Dear Ti community
I'm developing PCMC on HVPSFB.
There are questions.
-
about 2p2z parameters
In 「HVPSFB-Calculations.xls」
fz1,fz2,fp1,fp2,Kdc are setted as tuned parameters.
I think that they mean Kdc(s - fz1)(s - fz2)/((s - fp1)(s - f p2)).
Then change from continuous time to discrete time.
Are these right?
And , How do you change from continuous time to discrete time?
-
about comparater
Input of comparater -side is setted at DacDrvCnf.But I can't find the setting +side in code.
Where is it setted?
-
about over current
When over current,comparater2 is high.
After that,ePWM1 DCAEVT1 occurs,and ePWM1A/B is low.
But, ePWM2 's DCAEVT1 is assigned comparater1.
So I think when over current ,ePWM2 is not low.
Why ePWM2 is low when over current?
-
about assembler code
In 「HVPSFB-DPL-ISR.asm」 line 336,LB EXIT_ISR ; around 127 cycles including 4 for this branch
But even if I counted refer to 「TMS320C28x CPU and Instruction Set Reference Guide」,
it wasn't 127cycle.
I think,
「EALLOW」is 4 cycle.
「B」is 4cycle when through. 7 cycle when jump.
「LB」is 4 cycle.
「ADCDRV_4ch」is 14 cycle
「ADCDRV_1ch」is 5 cycle
「DACDRV_RAMP」is 9 cycle
「CNTL_2P2Z」is 36 cycle
「EDIS」is 4 cycle
「IRET」is 8 cycle
Another is 1 cycle.
Is that wrong?