I have a problem working with LCD on PICDEM 2 PLUS board - it is new revision (IMO it is R8) where LCD connected to PORT D.
I took LCD example and modified it for existing LCD connection, but it still doesn't work. Below is the snip from the code.
Any help will be greatly appreciated.
Code: Select all
// LCD module connections
sbit LCD_RS at RD4_bit;
sbit LCD_EN at RD6_bit;
sbit LCD_D4 at RD0_bit;
sbit LCD_D5 at RD1_bit;
sbit LCD_D6 at RD2_bit;
sbit LCD_D7 at RD3_bit;
sbit LCD_RS_Direction at TRISD4_bit;
sbit LCD_EN_Direction at TRISD6_bit;
sbit LCD_D4_Direction at TRISD0_bit;
sbit LCD_D5_Direction at TRISD1_bit;
sbit LCD_D6_Direction at TRISD2_bit;
sbit LCD_D7_Direction at TRISD3_bit;
// End LCD module connections
Thanks
P.S. I have working code for Hi-TECH compiler, so board/CPU/LCD are OK.