Post
by Mike6158 » Sun Dec 05, 2004 4:58 am
Cool site.<p>Here's a snippit of ASM code that used to initialize the LCD:
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr>
LCDINIT
; Busy-flag is not yet valid
CLRF LCD_CTRL; ALL PORT output should output Low.
; power-up delay
MOVLW 0x01E
CALL X_DELAY500 ; 30 * 0.5mS = 15mS
; Busy Flag should be valid from here
MOVLW 0x038 ; 8-bit-interface, 2-lines
CALL LCDPUTCMD <hr></blockquote><p>Do you have the manual for the PICBasic Pro compiler? In not, I think that you can download it for free. Look at page 73 (LCDOUT Command). There is a list of Defines that you put at the top of your program to initialize the LCD. The define that you are interested in is:
<blockquote><font size="1" face="Verdana, Helvetica, sans-serif">quote:</font><hr>
DEFINE LCD_LINES 2 'Set number of lines on LCD
<hr></blockquote>
"If the nucleus of a sodium atom were the size of a golf ball, the outermost electrons would lie 2 miles away. Atoms, like galaxies, are cathedrals of cavernous space. Matter is energy."