Hello,
I'm working with the KV4x series MCU (MKV46F128VLH16) and using Flex PWM submodule 0 to generate a complementary signed center-aligned PWM signal using PWMA and PWMB, with deadtime inserted.
My Goal:
When the PWM timer is stopped, I want both PWMA and PWMB to remain LOW.
When the PWM is running, I want true complementary behavior with deadtime — meaning PWMA and PWMB must never be HIGH at the same time.
My Configuration:
PWMA is configured as k PWM High True
PWMB is initially configured as k PWM Low True so that both outputs are LOW when PWM is stopped.
Before starting the PWM timer, I clear the POLB bit (set PWMB to High True) so that it complements PWMA.
After stopping, I set POLB again to return PWMB to Low True so both outputs go LOW.
This setup ensures:
Why does PWMB generate a stretched HIGH pulse (~10 µs) after restart, only when POLB is toggled?