Andreas 1)For written ascii characters in LCD module you must be check the status flag of the driver register begin that send other ascii caracter 2)check the initial configuration of LCD module Regards Francisco ----- Original Message ----- From: Andreas Eriksson To: Sent: Wednesday, January 10, 2001 11:06 AM Subject: [PIC]: Problems using a 1x8 chars LCD 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 listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body