Part Number: TM4C129XNCZAD
Hello, I have a Full-Bridge MOSFET driver that I am trying to control with 2PWM signals coming out of the TM4C129XNCZAD. I have followed the sample code from the peripheral driver library but I am getting a high signal on both PWM pins I am using. Here is the schematic for the connections.
Enable signal comes from PF4

The Full-Bridge MOSFET Driver

My code that keeps both TEC+ and TEC- at high.
SysCtlPeripheralEnable( SYSCTL_PERIPH_GPIOF );
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_GPIOF))
{
}
GPIOPinTypeGPIOOutput( PF_PWM_PORT, PF4_OPTICAL_AMP_TEC_ENABLE_PIN);
GPIOPinWrite( PF_PWM_PORT,
PF4_OPTICAL_AMP_TEC_ENABLE_PIN,
PF4_OPTICAL_AMP_TEC_ENABLE_PIN );
SysCtlPeripheralEnable(SYSCTL_PERIPH_PWM0);
while(!SysCtlPeripheralReady(SYSCTL_PERIPH_PWM0))
{
}
GPIOPinConfigure( GPIO_PF0_M0PWM0 );
GPIOPinConfigure( GPIO_PF1_M0PWM1 );
PWMGenConfigure(PWM0_BASE, PWM_GEN_0, (PWM_GEN_MODE_DOWN | PWM_GEN_MODE_NO_SYNC));
PWMDeadBandDisable(PWM0_BASE, PWM_GEN_0);
PWMGenPeriodSet(PWM0_BASE, PWM_GEN_0, 50000u);
PWMPulseWidthSet(PWM0_BASE, PWM_OUT_0, 25000u);
PWMPulseWidthSet(PWM0_BASE, PWM_OUT_0, 0u);
PWMIntDisable(PWM0_BASE, PWM_GEN_0 | PWM_INT_FAULT0);
PWMGenEnable(PWM0_BASE, PWM_GEN_0);
PWMOutputState(PWM0_BASE, PWM_OUT_0_BIT, true);
PWMOutputState(PWM0_BASE, PWM_OUT_1_BIT, false);
while(1){
}
I need to have a PWM signal for one of the TEC+ or TEC- while having the other one always low. The current code tries to send a PWM over TEC+ while keeping TEC- off but they are both on with this code.
