I am using the launchpad to do the ePWM. I have been able to get the correct PWM wave form. I am trying to do something in addition, where instead of manually imputing values to modulate the PWM in the CMPA_Reg I can just put in the duty cycle percentage and the result will be automatically computed and inserted to the CMPA. I am considering writing a code that will do the calculation but how can I link it to the CMPA where it automatically inputs the result for the duty cycle I want to determine. Is there any specific approach that you think will be better? Thank you!