piclist 2001\01\10\121826a >
Thread: Problems using a 1x8 chars LCD
www.piclist.com/techref/io/lcd/pic.htm?key=lcd
flavicon
face BY : Andreas Eriksson email (remove spam text)



Hi, i've just start programming for the pic and the first real "project" for me was to get a LCD working, after some reading I found that the HD44780 controlled ones was easy to use and common. The code i've made works fine now except for one thing, when printing some text on the LCD i ALWAYS get a weird character(seems to be char code: 10110101) and even when i do a display clear or cursor home i cant get to the first position of the LCD. Is my code wrong or have you experienced this on your own?

Heres the put command function(using portb as lcd_data):

putcmd_start
putcmd
movwf lcd_cmd ; the command is in W, just save it

bcf LCD_CTRL, LCD_RW ; setup for command recieve
bcf LCD_CTRL, LCD_RS
bsf LCD_CTRL, LCD_E

movf lcd_cmd, 0
movwf LCD_DATA
nop ; pulse must be wider than 450ns, is not necessary for fast clocks

bcf LCD_CTRL, LCD_E    
return
putcmd_end


Thanks!
Andreas Eriksson
SWEDEN

--
http://www.piclist.com#nomail Going offline? Don't AutoReply us!
email EraseMElistservspamspammitvma.mit.edu with SET PICList DIGEST in the body


<000701c07b27$9cbdcf80$0239a8c0@vulva.swip.net> quoted-printable

See also: www.piclist.com/techref/io/lcd/pic.htm?key=lcd
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Problems using a 1x8 chars LCD

month overview.

new search...