Many thanks for this beautiful site!This my first writing here.

I have the following problem:
I want to measure the voltage of a battery(it starts from 24 volt and mustn't go below 3 volt because it will be destroyed!) with portA from pic16f876.

Can i connect porta.1 of thw pic directly with battery (24 volt) and make adc or will i have a problem.I know that pic can function between 0-5 volt.But to make it more specific my question is if i connect pic with 24volt will the adc show the maximum value (connect 24 volt will show 5 volt) or will
i show pic in flame?Will i need an external ic between pic and battery? Which one?

Thanks in advance