| ??? 08/17/03 03:39 Read: times |
#52728 - RE: Help me for LCD 16x2 , plz ! Responding to: ???'s previous message |
Dear phan tuan son
Most of the LCDs I have used have an active high enable signal. Your code suggests that you are using active low. Perhaps your problem lies here. this is an extract of your Write_Text subroutine. SETB B0h.7 ;set EN line SETB B0h.6 ;RS line ? MOV 80h,E0h ;data to write CLR B0h.7 ;clr EN line LCALL WAIT_LCD RET You should change this to look like this SETB B0h.6 MOV 80h,E0h SETB B0h.7 ;set EN line CLR B0h.7 ;clr EN line LCALL WAIT_LCD RET I hope your problem is solved by this. Of course, you have to make similar changes wherever you write to the LCD either command or data. Jerson |



