newbie111
Member level 2
cgram again
Hi,
I tried to access the cgram of my lcd
but nothing happened
Actually I do not know how to make it work
I am poor in programming.
Would anyone kindly teach me how to store a font into cgram
?
Thanks
Hi,
I tried to access the cgram of my lcd
but nothing happened
Code:
LCDSCGA
ANDLW 0x01
iorlw 0x08
call lcd_c
store
movlw 0x40
movwf 0x00 ;Load row 1 data
call lcd_c ;Send the data
movlw 0x0E
movf 0x01 ;Load row 2 data
call lcd_d ;Send the data
movlw 0x0E
movwf 0x02 ;Load row 3 data
call lcd_d ;Send the data
movlw 0x0E
movwf 0x03 ;Load row 4 data
call lcd_d ;Send the data
movlw 0x0F
movwf 0x04 ;Load row 5 data
call lcd_d ;Send the data
movlw 0x00
movwf 0x05 ;Load row 6 data
call lcd_d ;Send the data
movlw 0x04
movwf 0x06 ;Load row 7 data
call lcd_d ;Send the data
movlw 0x00
movwf 0x07 ;Load row 8 data
call lcd_d ;Send the data
return ;Return from routine
Actually I do not know how to make it work
I am poor in programming.
Would anyone kindly teach me how to store a font into cgram
?
Thanks