smileguitar
Newbie level 4
assembly language retlw
From the coding above, why need to clear count, what it is use for? And why increase f? is it a timing?
How do I explain xorlw for understanding, while I've read the explaination; not really understand it.
I know that if display a message on line1 of LCD just set R/S to '1'. But what it's mean by the coding above, where move to 1st row, 1st column / move to 2nd row, 1st cloumn / move to 1st row, column W / move to 2nd row, column W ? The purpose of doing this is for?
Code:
clrf count
Message movf count, w
call Text
xorlw 0x00
btfsc STATUS, Z
goto NextMessage
call LCD_Char
call Delay255
incf count, f
goto Message
From the coding above, why need to clear count, what it is use for? And why increase f? is it a timing?
How do I explain xorlw for understanding, while I've read the explaination; not really understand it.
Code:
LCD_Line1 movlw 0x80 ;move to 1st row, first column
call LCD_Cmd
retlw 0x00
LCD_Line2 movlw 0xc0 ;move to 2nd row, first column
call LCD_Cmd
retlw 0x00
LCD_Line1W addlw 0x80 ;move to 1st row, column W
call LCD_Cmd
retlw 0x00
LCD_Line2W addlw 0xc0 ;move to 2nd row, column W
call LCD_Cmd
retlw 0x00
I know that if display a message on line1 of LCD just set R/S to '1'. But what it's mean by the coding above, where move to 1st row, 1st column / move to 2nd row, 1st cloumn / move to 1st row, column W / move to 2nd row, column W ? The purpose of doing this is for?