On May 29, 2005, at 1:47 PM, Murat wrote: > > TRISA=0; > TRISB=0; > lcd_init(); > As a guess (without having used LCDs, the particular c compiler you're using, or an 877) if lcd_init() does not set the TRIS registers for you, it probably doesn't turn off the alternate functions of the porta/portb pins either, and you'll have to make sure they're set up for digital IO. The function that has bitten me by being on by default on similar chips is the analog comparator... BillW -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist