Thanks for the reply.
I will explain u wat i did(using assembly).
inputs to controller:
1.Actually main is an analog i/p to M/C.
2.power failure indication(digital).
3.volt zero cross and current zero cross are two digital i/p.
4.Overload and battery i/p are two analog.
-----------------------------------------------------
1.first step,i intialised all requirements.then using PA0,i read the mains voltage range.and compared with reference for stabilizer operations.zero crossings are used for stabilizer operation.
2.if the voltage is outof reference range,i will start the inverter.here i m readin overload and battery i/p.
plz tell me how can i know whether i/p main is present or not(can use interrupt).which pin need to connect.
plz correct me,if wrong.If u want i'll give u my code.
Bookmarks