Part Number: DRV8312-C2-KIT
Hello:
I am trying to learn how to control sensor BLDC motor with DRV8312. In ..\controlSUITE\development_kits\DRV8312-C2-KIT_v128\BLDC_Sensored firmware, I don’t understand the macro in line 164: “#define PWMDAC_MACRO(v)” at f2803xpwmdac_BLDC.h file.
I set “#define BUILDLEVEL LEVEL2” in BLDC_Sensored-Settings.h file.
When “PWMDAC_MACR0(pwmdac1)” is called in BLDC_Sensored.c file, it invokes the macro. Why in macro, TmpD and EPwm6Regs.CMPA.half.CMPA calculated like that?
Thanks, Jian