PWM mode Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
sdalu
Posts: 35
Joined: Wed Dec 30, 2015 5:31 pm
Has thanked: 1 time
Been thanked: 2 times

PWM mode

Postby sdalu » Wed May 18, 2016 12:49 pm

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

User avatar
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

Postby Giovanni » Wed May 18, 2016 12:56 pm

I think you are right, the active mode low should not work as intended.

Moving to the bugs section.

Giovanni

User avatar
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

Postby Giovanni » Wed May 18, 2016 1:03 pm

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


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 66 guests