$ 0 0 Hi, Looking at you code I can't see where your setting portc (data port) to be input. Maybe I just missed it. Regards ian Dobson