Other Parts Discussed in Thread: TMS320F28069, CONTROLSUITE
HI
I got struck at ADC conversion process. After sensing the output voltage for the purpose of feedback and gave it to corresponding ADC pin (TMS320F28069) for example pin2. In the watch window when i observe the converted values, the problem is that the converted values are varying (which should not be).To stabilize this value i hused digital low pass filter, but still i couldn't stabilize.Can any one help ???
Following is the code i used for ADC conversion process.
Voltage_ADC2 = AdcResult.ADCRESULT0; //add Voltage_ADC2 to watch window
Voltage_New = (Voltage_ADC2) * (3.3/4095)*25; // convert to the new value
filter_input=Voltage_New;
filter_feedback=((1-0.5)*filter_feedback)+(0.5*filter_input);
Voltage_New=filter_feedback;
EPwm1Regs.CMPA.half.CMPA = duty_cycle_A;