Hi jerson,
Thanks for ur response.I am designin UPS control operation using 16f72.my confusion is how to know whether main is present or not.
1.If main is present,operation continues with main power
2.if not inverter should continue the task.
here power failure indication is one i/p to PIC.so,i am thinkin to connect it to RB0/INT.so that i can start inverter.in case of power resumption,i should start the main with some delay,
i used the intr routine like,
;power failure condition
;RB0/INT vector
org 0x04
btfsc INTCON,INTF ;in case power failure i/p is 0,start main.
goto inverter_start
goto start_main
Plz give ur suggestion.
I have another doubt.I used LCD display to display the character,
i used the code like
movlw "U"
call disp
movlw "P"
call disp
movlw "S"
call disp
If i use like this will increase the memory.i want to save the memory,so instead of these,can i use DB or DT
like
dt "UPS"
call disp
-Regards,
Raja.
Bookmarks