Hi! Under here I reported a very simple code which should write on LCD 'A' = if pind(1) is pressed and 'B' if pind(2) is pressed. When I try it, if I = press the same switch more times, character on LCD change!!! I don't understand why. Could anyone suggest me anything ? thx, Marco Trapanese --- e-mail: marcotrapanese@tin.it web: http://members.xoom.it/m_trapanese *** C code *** #include #include <90s8515.h> void main(void) { DDRD.1=3D0; DDRD.2=3D0; lcd_init(16); lcd_clear(); while (1) { if (PIND.1) { lcd_gotoxy(0, 0); lcd_putsf("A"); } if (PIND.2) { lcd_gotoxy(0, 0); lcd_putsf("B"); } }; } -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu