Tool/software:
I have been using the Launchpad XL and the PLECS TI C2000 target library to generate PWM signals for my three-phase inverter. I'm doing closed-loop control so I need to measure the current value which I'm doing via the ADC pins of the micro-controller. The issue I'm facing is that the ADC pin has an inherent bias that shifts the Digital value either with a positive offset from 0 or a negative offset from 0. This makes it difficult to measure the actual current value. Also, the bias does not remain the same over a given time, it changes to a new value every time the microcontroller is reset. It isn't easy to calibrate this offset too. The current sensor is not an issue here since I have measured the value of the current sensor output. The ADC value has some noise too which can be filtered out however the bias cannot be determined. Is this a common issue with this microcontroller? If yes, can anything be done to improve the data?
