Oh Dear!!!! Got caught again !!!
Trick for anyone reading this....
If you use a PIC chip with on board Analogue Inputs, ie
A0, A1, A2, A3 on PIC 16F628a,
Make SURE you add the line
CMCON = 7 ( Disable A-D, PortA = Digital)
Adding this line resolved the problem.
Actually I realised as I was typing the question before,
added the line in the program, and yep! all working.
Trust this will help.
thnks
Peter
Bookmarks