A continuación mostramos el programa de ASM para hacer que aparezcan las palabras "Hola Mundo" en un LCD de 16x2 (16 caracteres y 2 lineas):
Principal
call LCD_Inicializa
call Retardo_1ms
movlw 'H'
call LCD_Caracter
movlw 'o'
call LCD_Caracter
movlw 'l'
call LCD_Caracter
movlw 'a'
call LCD_Caracter
movlw ' '
call LCD_Caracter
movlw 'M'
call LCD_Caracter
movlw 'u'
call LCD_Caracter
movlw 'n'
call LCD_Caracter
movlw 'd'
call LCD_Caracter
movlw 'o'
call LCD_Caracter
goto $
include <LCD_4BIT.inc>
include <RETARDOS.inc>
;====================================================================
END
No hay comentarios:
Publicar un comentario