coz the first time it used it, it works properly then when i tried to load a program again it wont provide an output..how come? i've already tried test all its port but it doesn't provide an output..
As far as I can see, you don't initialize which pin the ADC is to read let alone whether it is a digital, analog, input or output pin? ie: What library are init_ADC() and read_ADC() from?
A schematic would help also.
Post you code using the CODE tags to preserve formatting.