yeah sorry was the 16f877A, typo.

bruce's filter capacitor trick has definatly helped, but not entirely got rid of the problem. it still shows black and sometimes gets 'stuck' every now and again. is there some other way of defeating this problem??

is there some way to recognise that it has gone wrong and for the pic to 'reset' itself??

thanks guys