Hi,
Question related to the PWM generation. Please find the het.c file attached (generated by HALCOGEN). Intention is to modify the period of the PWM waveform in runtime.
Have set the duty cycle and Period initially and the PWM is being generated. After processing for some time , tried to modify the period of it. PWM generation is stopped at this point.
Used the below APIs to set the period.
pwmStop (hetRAM1, pwm0);
pwmSetSignal (hetRAM1, pwm0, SignalInfo);
pwmStart (hetRAM1, pwm0);
Are we allowed to set the period in normal run mode or do we need to be in privieleged mode to set this ?
Please suggest.
Thanks