- Ensure the logic to generate PWM in counting mode "Up-Down" is correct. This can be fixed from the "Counter Compare" tab of the ePWM block.
- Check if the potentiometer output voltage is provided to the correct ADC pin in the F28069M Launchpad as defined by the ADC block in the model. This can be changed from the "Input Channels" tab in the ADC block.
- Ensure the potentiometer output voltage is within the sensible limit of the launchpad.
- Try to use "Clock cycles" instead of "Seconds" in the ePWM block for both "Timer period units" and "CMPA units" as this will increase the precision of computation.
- Use the value of duty ratio instead providng it as percentage value maximum output of ADC