Hi,
Thank you so much for your interest in our products and for using our community.
For PWM frequency of 50Hz with eMIOS clock frequency of 160MHz you need up to 3,200,000 ticks:
1s -> 160MHz (160,000,000 ticks)
50Hz = (1/50)s
->160,000,000 *(1/50) = 3,200,000 ticks
But the eMIOS is a 16 bits timer, which can count up to 65,535 ticks.
What you can do is try to slow down the eMIOS clock frequency.
Hope it helps you.
Have a nice day!