Intense assembly help within 3 days...

Thread Starter

sanwa

Joined Jan 18, 2009
36
There is an include file for my project, which is the lcd.asm.
From my main file, i have Print_Char:
In the lcd.asm:
Rich (BB code):
;---------------------------------------------------
;         Show an ASCII Character on the LCD
;
; Input: W = character
;
Print_Char:
	goto	LCDdata
Rich (BB code):
;------------------------------------------------------------------
;              Send Data Byte to LCD
;
; Input: W = data byte
;
LCDdata:
	incf	lcd_address	; update cursor position
	bsf	LCD_RS
LCD_write:
	movwf	lcd_dat
	call	lcd_hi
	bsf	LCD_E
	nop
	bcf	LCD_E
	call	lcd_lo
	bsf	LCD_E
	nop
	bcf	LCD_E
	goto    wait100		; wait 100uS


;------------------------------------------------------------------
Is this code the one that will display the character as what we can see on the LCD? (I mean decimal). As I am planning to use this to convert my binary string to readable decimal at the hyperterminal. Thanks
 

thatoneguy

Joined Feb 19, 2009
6,359
LCD needs either 4 bit (nybble) or 8 bit (byte) input. There are serial to LCD driver ICs available, otherwise, 7 pins are needed for R/W, 6 pins for write only to LCD.

They are also somewhat fussy about timing, especially in nybble mode.
 
Top