Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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: 40
  • Main.txt
    3.7 KB · Views: 39
  • LCDInit2.txt
    5 KB · Views: 34

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top