Tool/software: Code Composer Studio
I need to build a hysteresis current controller for the single phase inverter system. A function generator will provide the reference current signal , to compared with current signal obtained by the LEM current from the device. A analog comparator system will compare with these two signals to produce a complementary PWM signal ( bipolar PWM) to control the inverter. A RL load is connect in the inverter Ac side. The DC side will be connnected to a DC source (30V). My question will be :
1) How can i implement the hysteresis controller band , i am think about use the software level: ADC two signals simutanously and produce a error, if the error is bigger than 0.1 (for example)... and if error is smalller than 0.1.... For the analogue circuity, it seems to be difficult to define a prefered hysteresis band range. And if anyone think analog method is effective, could you explain me how in detail
2) The output will be used to control the PWM to produce a complementatry PWM signal to control the inverter, can i ask how to acheive the aim, if someone can describe me briefly.
Thank you very much.
