Part Number: DRV8312-69M-KIT
Tool/software: Code Composer Studio
Motorware 18, DRV8312 board, the PWMDAC (DAC3) does not issue an output to the oscilloscope. This is because the GPIO is not set correctly in the hal.c file. To correct this, read the following:
Look in hal.c , around line 990.
It says:
// PWM-DAC3
GPIO_setMode(obj->gpioHandle,GPIO_Number_8,GPIO_8_Mode_ADCSOCAO_NOT);
//------------------------
I think the GPIO line was set wrong; so I changed it to:
// PWM-DAC3
GPIO_setMode(obj->gpioHandle,GPIO_Number_8,GPIO_8_Mode_EPWM5A);
//-----------------------------------------
And now the third PWMDAC channel works! Let me know if this change works for you.
Kurt Kloesel
Notes on how I figured this out:
1.) Reviewed schematics and noticed that DAC1 = GPIO10, DAC2=GPIO11 and DAC3=GPIO8
2.) Schematics can be found in folder C:\ti\controlSUITE\development_kits\DRV8312-C2-KIT_v128\~DRV8312EVM-HWdevPkg\DRV8312_RevD_HWDevPKG\DRV8312EVM_RevD_Schematic.pdf
3.) I finally stumbled across the GPIO definitions in hal.c and noticed that GPIO8 was different than GPIO10 and GPIO11