LCD Pic Asm Code
LCD Pic Asm Code
LCD Pic Asm Code
http://www.winpicprog.co.uk/pic_tutorial.htm
http://www.ekenrooi.net/lcd/lcd2.shtml#PIC_lcd_init
LIST p=16F628 ;tell assembler what chip we are using
include "P16F628.inc" ;include the defaults for the chip
ERRORLEVEL 0, -302 ;suppress bank selection messages
__config 0x3D18 ;sets the configuration settings
(oscillator type etc.)
org 0x0000
movlw 0x07
movwf CMCON ;turn comparators off (make it
like a 16F84)
EndMessage
;LCD routines
;Initialise LCD
LCD_Init movlw 0x20 ;Set 4 bit mode
call LCD_Cmd
retlw 0x00
decfsz count1 ,f
goto d1
retlw 0x00
end