You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is great work. I am trying to generate a three phase motor drive using PWM with three complementary half bridges... I suspect there may be a typo at line 297. I think the OCMode should be set to TIM_OCMODE_INACTIVE instead of TIM_OCMODE_ACTIVE. I think this is needed for the active LOW channel of the PWM...
Full disclosure: I am a newbie with STM32 coding so I may be wrong so I hope you can check this...
The file is in HardwareTimer.cpp at line 297.
case TIMER_OUTPUT_COMPARE_ACTIVE:
channelOC[channel - 1].OCMode = TIM_OCMODE_ACTIVE;
pinMode = GPIO_MODE_AF_PP;
break;
case TIMER_OUTPUT_COMPARE_INACTIVE:
**channelOC[channel - 1].OCMode = TIM_OCMODE_ACTIVE; // Should this be TIM_OCMODE_INACTIVE ?**
pinMode = GPIO_MODE_AF_PP;
break;
The text was updated successfully, but these errors were encountered:
This is great work. I am trying to generate a three phase motor drive using PWM with three complementary half bridges... I suspect there may be a typo at line 297. I think the OCMode should be set to TIM_OCMODE_INACTIVE instead of TIM_OCMODE_ACTIVE. I think this is needed for the active LOW channel of the PWM...
Full disclosure: I am a newbie with STM32 coding so I may be wrong so I hope you can check this...
The file is in HardwareTimer.cpp at line 297.
The text was updated successfully, but these errors were encountered: