I fixed it!
If you're using V4.1+, you might want to try MCPWM0A/MCPWM0B instead of MCPWM_OPR_A/MCPWM_OPR_B. Also, when you use mcpwm_set_duty_type, the duty type should be MCPWM_DUTY_MODE_1 as well.
Search found 2 matches
- Thu Feb 02, 2023 5:12 pm
- Forum: ESP-IDF
- Topic: MCPWM: "Active low duty" cannot be set - bug or feature?
- Replies: 2
- Views: 1767
- Thu Feb 02, 2023 4:20 pm
- Forum: ESP-IDF
- Topic: MCPWM: "Active low duty" cannot be set - bug or feature?
- Replies: 2
- Views: 1767
Re: MCPWM: "Active low duty" cannot be set - bug or feature?
MCPWM_DUTY_MODE_1 does not work for me either.