This topic can be closed.
I change de duty cycle mode to 1 and the blue line do what I expected.
Then I figure out that this is the behavior when you have a up an down counter.
The complementary channel must have this behavior to the other channel fit in the remaining space.
Search found 2 matches
- Thu Oct 10, 2019 11:49 pm
- Forum: ESP32 Arduino
- Topic: Strange behavior when changing dutycycle at up down counter
- Replies: 1
- Views: 2669
- Thu Oct 10, 2019 2:47 am
- Forum: ESP32 Arduino
- Topic: Strange behavior when changing dutycycle at up down counter
- Replies: 1
- Views: 2669
Strange behavior when changing dutycycle at up down counter
Hi dear, I´m using 2 mcpwm with up and down counter and could make 2 symmetric complementary wave forms with deadtime, this is ok! But how to change the duty cycle to affect the up and down cycle? I try to create a interrupt at the start of timer and change the dutyCycle before it start. But it's on...