Wonder if any can help with this problem? Is there any thing strange about port E on a 16C64, pull ups or anything like that. Ive got a load of code running in one and on MPLAB the port works fine, outputting on each pin as required by the code. But on the board I am getting pins going high when they should not, at this exact point in the code, on MPLAB they dont? Any one got any thoughts. Ive checked the data sheet but that doesn't seem to say anything about pull ups or the like. TIA -- Philip Martin ---------------------------------------------------------------- Royal Quays If at first you don't succeed, try again. Then quit: North Shields. no use being a damn fool about it ! PADI AOW+ W.C. Fields email philip@philmart.demon.co.uk