Hi,

1.I am doin UPS control operations using 16f72(assembly).I want to connect main supply to pic PORTA,this contains adc inbuilt.my confusion is how to these analog pins.to use it as digital,first should config porta as digital i/o.but to receive analog inputs can i directly use the pins without any settins.

2.PIC operates on 5v.if i connect with 230v main is required any modifications in s/w side,I think this will be taken care by h/w.

Plz correct me,if i m wrong.