AnsweredAssumed Answered

STM32F4 Disable PWM for protection purpose

Question asked by pham.minh on Dec 27, 2014
Latest reply on Dec 29, 2014 by pham.minh

I'm using Channel 1&3 in TIM1 to generate 4 Complementary PWMs (PA8, PA10, PB13, PB15, STM32F401VC DISCOVERY) to control my FullBridge DC-DC Converter. 
In overcurrent or overvoltage cases, the PWM should be shutdowned to protect the MOSFETs. I'm using the following codes in Read_ADC() Procedure to do that. 
I wonder wheather these PWM Pin would be transfer to OpenDrain or connect to GND after shutdowned? And how could I connect GND for these Pins this case? This problem has influenced to the driver circuit and the MOSFETs very much.
Can anyone help me?
Thank you very much!!

// Check Max_Cur and Max_Vb to disable PWM
    if ( Ir_Buf[Cur_Pos] > Max_Cur )
            {
                        TIM1->CR1  &= (uint16_t)(~TIM_CR1_CEN);
                                    TIM1->BDTR &= (uint16_t)~TIM_BDTR_MOE;
                        TIM1->CCER &= (uint16_t)~(TIM_CCER_CC1E | TIM_CCER_CC1NE | TIM_CCER_CC3E | TIM_CCER_CC3NE);
            }
            if (Vb_Buf[Cur_Pos] > Max_Vb)
                        {
                                    TIM1->CR1  &= (uint16_t)(~TIM_CR1_CEN);
                                    TIM1->BDTR &= (uint16_t)~TIM_BDTR_MOE;
                                    TIM1->CCER &= (uint16_t)~(TIM_CCER_CC1E | TIM_CCER_CC1NE | TIM_CCER_CC3E | TIM_CCER_CC3NE);
                        }

Outcomes