I was reading the code, and was wondering if break are not missing from the switch statements.
(note that I don't have STM32 hardware).
os/hal/ports/STM32/LLD/TIMv1/hal_pwm_lld.c
Sincerly
PWM mode Topic is solved
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: PWM mode
I think you are right, the active mode low should not work as intended.
Moving to the bugs section.
Giovanni
Moving to the bugs section.
Giovanni
- Giovanni
- Site Admin
- Posts: 14457
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: PWM mode Topic is solved
After going through them, the code is correct, the switch-case are supposed to go through.
STM32_TIM_CCER_CCxP is the polarity, STM32_TIM_CCER_CCxE is the channel enable.
Giovanni
STM32_TIM_CCER_CCxP is the polarity, STM32_TIM_CCER_CCxE is the channel enable.
Giovanni
Who is online
Users browsing this forum: No registered users and 66 guests