This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am new to TMS570Ls,also I have purchased TMS570LS31x HDK and I am working on PWM generation using Halcogen software.I want to edit the halcogen code for varying period and duty cyle.please guide
Hi Pai,
Ok, if you are completely new to HalCoGen then you can simply experiment with the example PWM program <installpath>\HALCoGen\v04.00.00\examples\TMS570LS31x\example_hetPwm.c.
This will just get you going with a PWM.
If you want to then add code to change the PWM duty cycle, check out the generated file 'het.c'.
It includes API functions that you can add to the example code like void pwmSetDuty(hetRAMBASE_t * hetRAM, uint32 pwm, uint32 pwmDuty). You can experiment with this function to try changing the duty cycle.
Hi Anthony F. Seely,
Thanks a lot for the suggestion .Sorry for replying late as i was on official tour.I will try it and let you know.