Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/16/03 10:39
Read: times


 
#60720 - RE: lcd init routine:urgent
Responding to: ???'s previous message
Hi,
I dont see any need why you are sending the 4 bit initialization command twice...?
And also is your lcd 2 line or single line...

I have a lcd routine for 4 bit mode ,been using it for almost a year.

the initialization code is as follows...

;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
LCD_INIT:

MOV A,#00101000B ;4 BIT MODE 2 LINE LCD 5*7 FONT
LCALL COMMAND

MOV A,#00000001B ;CLEAR DISPLAY
LCALL COMMAND

MOV A,#00000011B ;DISPLAY AND CURSOR HOME
LCALL COMMAND

MOV A,#00001100B ;DISPLAY ON ,CURSOR NO BLINK
LCALL COMMAND

RET
;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Rgds
Raj Shetgar

List of 6 messages in thread
TopicAuthorDate
lcd init routine:urgent            01/01/70 00:00      
   RE: lcd init routine:urgent            01/01/70 00:00      
   RE: lcd init routine:urgent            01/01/70 00:00      
   RE: lcd init routine:urgent            01/01/70 00:00      
      RE: lcd init routine:urgent            01/01/70 00:00      
         RE: lcd init routine:urgent            01/01/70 00:00      

Back to Subject List