Hello All,
I'm using the base board DRV8301-HC-EVM RevC with the contolCARD MDL-LM4F211CNCD based on the Stellaris LM4F211H5QR.
Actually, I'm trying to set the GPIO pin PD3 of the MCU and the EN_GATE pin of the DRV8301 to high in order to enable the gate driver but without success.
Here is my code:
#1:
ROM_SysCtlClockSet(SYSCTL_SYSDIV_10 | SYSCTL_USE_PLL | SYSCTL_XTAL_16MHZ | SYSCTL_OSC_MAIN);
ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOD);
ROM_GPIOPinTypeGPIOOutput(GPIO_PORTD_BASE, GPIO_PIN_3); // PD3 -> EN_GATE
ROM_GPIOPadConfigSet(GPIO_PORTD_BASE, GPIO_PIN_3, GPIO_STRENGTH_2MA, GPIO_PIN_TYPE_STD_WPU);
ROM_GPIOPinWrite(GPIO_PORTD_BASE, GPIO_PIN_3, GPIO_PIN_3);
#2:
SYSCTL_RCGC2_R |= SYSCTL_RCGC2_GPIOD;
ROM_SysCtlDelay(10);
GPIO_PORTD_DIR_R |= 0x08;
GPIO_PORTD_DEN_R |= 0x08;
GPIO_PORTD_DATA_R |= 0x08;
Can somebody please tell me what is wrong in my code?