??? 05/02/05 09:31 Read: times Msg Score: -1 -1 Didn't Search First |
#92710 - LCD help |
I am trying to learn 8051 programming.I wrote a code that sends upside down question mark to the LCD.the LCd displays it .but filfills up all the places with same character can any one tell me why this may be happenning.Please tell me if this way of writing to cgram and ddram area is correct.Command is the rutine for setting RS,R/w and E line to write to IR and data is the routine to write to data register.
mov a,#40h ; setting to write in cg ram area acall command mov a,#04h ;sending first row bits acall data mov a,#00h ; sending second row acall data mov a,#04h acall data mov a,#08h acall data mov a,#10h acall data mov a,#11h acall data mov a,#0eh acall data mov a,#00h ;sending eighth row as 0 since it is cursor place acall data mov a,#80h ; entering DDRAM area acall command |