something wrong with lcd initialization

Status
Not open for further replies.

isabella

Junior Member level 3
Joined
Mar 23, 2012
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,523
Can someone have a look and tell me what is wrong with this code. The lcd does not want to display anything
 

Attachments

  • LCDinit.txt
    5.1 KB · Views: 45
  • Main.txt
    3.7 KB · Views: 42
  • LCDInit2.txt
    5 KB · Views: 37

please delete following line lcdinit2.txt

MOVLW b'00101000' ; Begin om te initialize in 8-bit
MOVWF PORTD ;
BSF LCD_EN2 ;
BCF LCD_EN2 ;
CALL Del_50uS ;
CALL Del_50uS ;

MOVLW b'00101000' ; Begin om te initialize in 8-bit
MOVWF PORTD ;
BSF LCD_EN2 ;
BCF LCD_EN2 ;
CALL Del_50uS ;
CALL Del_50uS ;
 

I have figured out a way to get it working, it displays perfectly. I noww have one more problem, can some one help me with a macro to display strings? I have to display 100 sentences, so I figured 100 truthtables. I'm working with mplab assembler pic16F877. It must take as little memory as possible. Please help.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…