How to have indipendent PWM output PWM channel 0 and PWM channel 1.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2022-09-05 6:58 AM
Hi,
I have FlexPWM0 with PWM channel 0 and PWM channel 1 enabled.
Then if i put this code
pwm_lld_start(&PWMD1, &pwm_config_pwm_cfg0);
pwm_lld_enable_channel(&PWMD1, 0, PWM_PERCENTAGE_TO_WIDTH(&PWMD1, 5000));
pwm_lld_enable_channel(&PWMD1, 1, PWM_PERCENTAGE_TO_WIDTH(&PWMD1, 2000));
I have on the output on both PWM 50% and not 20%.
How can be indipendent?
Labels:
- Labels:
-
TIM
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
