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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/10/02 14:07
Read: times


 
#30536 - Graphic character in LCD 16x2
I want to make own character 16x2 line LCD using CGRAM. There is no problem when i only write one character. But when I write two different characters on different address 80h and 81h(or etc.), there are two same character that have been written on LCD. Why is this happen ? This is my program :

start:
lcall INIT_LCD
...
mov a,#80h ; go to address 0
lcall WRCommand2LCD
MOV A,#00H ; Write character 0
LCALL WRChar2LCD
mov a,#40h ; write to CGRAM
lcall WRCommand2LCD
MOV A,#04H
LCALL WRChar2LCD ; write row 0
MOV A,#00H
LCALL WRChar2LCD ; write row 1
MOV A,#04H
LCALL WRChar2LCD ; write row 2
MOV A,#04H
LCALL WRChar2LCD ; write row 3
MOV A,#08H
LCALL WRChar2LCD ; write row 4
MOV A,#11h
LCALL WRChar2LCD ; write row 5
MOV A,#11H
LCALL WRChar2LCD ; write row 6
MOV A,#0eH
LCALL WRChar2LCD ; write row 7

mov a,#81h ; go to address 1
lcall WRCommand2LCD
MOV A,#00H ; write character 1
LCALL WRChar2LCD
mov a,#40h ; write CGRAM
lcall WRCommand2LCD
MOV A,#04H
LCALL WRChar2LCD ; write row 0
MOV A,#4H
LCALL WRChar2LCD ; write row 1
MOV A,#4H
LCALL WRChar2LCD ; write row 2
MOV A,#4H
LCALL WRChar2LCD ; write row 3
MOV A,#4H
LCALL WRChar2LCD ; write row 4
MOV A,#4H
LCALL WRChar2LCD ; write row 5
MOV A,#4H
LCALL WRChar2LCD ; write row 6
MOV A,#00H
LCALL WRChar2LCD ; write row 7

sjmp $

Which part that i have to change in my program ?
I read article Myke's Website (www.rentrom.com) how to make graphic characters, but he only write different characters on the same address (80h). And if I Write a command to LCD my command is not working. Like 14h command (cursor shift rigth). the cursor jump to address C9h and write same character like on 80h address


Andi

List of 12 messages in thread
TopicAuthorDate
Graphic character in LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2.cont.            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      
   RE: software interface LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      
RE: Graphic character in LCD 16x2            01/01/70 00:00      

Back to Subject List