??? 06/21/06 01:16 Read: times Msg Score: -1 -1 Non-Specific question |
#118668 - LCD does works but not display |
Hi. This is the first time I work with an LCD. The code only displays a character.
If you see the configuration you'll notice that I send the common commands so at the end of configuration I have a blinking block at screen home. This part works well but I can't display the letter G. I hope you can help me. <pre> configura: RS equ P1.0 En equ P1.1 mov R1, #75 acall retardo clr RS ; Send a command. clr En ; Enable = 0. mov P0, #38h ; Function Set. mov R2, #150 ; Time for delay acall habilita ; Call for enable and delay subrutine mov P0, #0Fh ; Display control. mov R2, #50 acall habilita mov P0, #01h ; Clear screen. mov R2, #50 acall habilita mov P0, #02h ; Screen Home. mov R2, #50 acall habilita mov P0, #06h ; Increment DDRAM after writing mov R2, #50 acall habilita inicio: mov R2, #255 setb RS mov P0, #'G' acall habilita retardo: ; Get 16.575 ms. djnz R0, retardo djnz R1, retardo ret decr1: djnz R2, decr1 ret habilita: setb En ; Enable. acall decr1 ; Delay clr En ; Disable. ret end |
Topic | Author | Date |
LCD does works but not display | 01/01/70 00:00 | |
function set x4 | 01/01/70 00:00 | |
LCD fun | 01/01/70 00:00 | |
an LCD | 01/01/70 00:00 | |
Delay | 01/01/70 00:00 | |
SOLUTION![]() | 01/01/70 00:00 |