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:
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
From my main file, i have Print_Char:
In the lcd.asm:
Code:
;---------------------------------------------------
; Show an ASCII Character on the LCD
;
; Input: W = character
;
Print_Char:
goto LCDdata
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
;------------------------------------------------------------------