High all,

Can anyone tell me why Port A and Port E would draw high current when in digital mode connected to +5V to read a DIP switch?

I have ADCON1 = 7

and have the 1st 6 bits connected to A0 to A5 and the last 2 bits to E0 and E1.

I am reading currents of 200mA being drawn by the 16F877A ( frying!)

I read the datasheet of PortA and it seems that when in digital all is just TTL inputs.

What have I done wrong?

Regards

Chris