> Just remember that it is a program in your programming space that has = been enabled=20 > by a special bit of hardware that has in effect caused a special = interrupt. Yes, I forgot that. All to easy to think it's a real emulator. > Well I would say that to do this you are best to get the=20 > operations to a > point where they work correctly, i.e. the A/D operation, and the LCD > operation, and then dispense with the ICD=20 Yep. At least now I feel happy about carrying on. Over the weekend I was = pulling my hair out. Seems so simple now I know. I know all the seperate bits work if I run everything in a big = background task. I just needed to get a constant periodic sampling = interval to make the numbers displayed meaningful and went off on a = tangent. Thanks for all your help everyone. Pete now with a big smile -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu