Starting out a new project and just trying to write some bits for my computer to read (just using cat /dev/ttyS1)- here is part of what I have so far, not sure why it doesn't work
Main:
call Print_Message
movlw 90H
movf TXREG
call Delay1sec
goto Main
Print_Message:
call LCD_Init
call Delay10ms
movlw MSG1
;movwf TXREG
call LCD_PrintString
call LCD_NewLine
movlw MSG2
call LCD_PrintString
call Delay1sec
call LCD_Init
call Delay10ms
movlw MSG3
call LCD_PrintString
call LCD_NewLine
;call Voltage
movlw MSG4
call LCD_PrintString
call Delay1sec
return
Main:
call Print_Message
movlw 90H
movf TXREG
call Delay1sec
goto Main
Print_Message:
call LCD_Init
call Delay10ms
movlw MSG1
;movwf TXREG
call LCD_PrintString
call LCD_NewLine
movlw MSG2
call LCD_PrintString
call Delay1sec
call LCD_Init
call Delay10ms
movlw MSG3
call LCD_PrintString
call LCD_NewLine
;call Voltage
movlw MSG4
call LCD_PrintString
call Delay1sec
return