LCD problems with 16F877 on PICDEM 2 PLUS

General discussion on mikroC.
Post Reply
Author
Message
Naomi2003
Posts: 1
Joined: 29 Oct 2010 20:54

LCD problems with 16F877 on PICDEM 2 PLUS

#1 Post by Naomi2003 » 29 Oct 2010 22:16

Hi there.
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.

Post Reply

Return to “mikroC General”