Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Proteus is too finicky when it comes to LCD init....The data sheet shows a certain procedure to initialise 4 bit If you don't follow this precisely Proteus will not work..
LCD_Init call Delay100 ; 100mS
bsf PORTC,2 ; load 0x03
bsf PORTC,3 ; //
call LCD_E
call Delay20
call LCD_E
call Delay5 ; 10mS
call Delay5 ; 10mS
;
movlw 20h ; b'00100000' set to 4 bit mode
call LCD_CMD_Write ; set to command mode
Func_Set movlw 2Ch ; 2 line display,5X8
call LCD_CMD_Write ; set to command mode
movlw 0Dh ; 00001101 Set display on/off and cursor command
call LCD_CMD_Write
return
LCD_Init call Delay100 ; 100mS
bcf PORTC,6
bsf PORTC,2
bsf PORTC,3 ; load 0x32
call LCD_E ; clock 3
call Delay5
bcf PORTC,2 ; clock 2
call LCD_E
call Delay5 ; 20mS
; load 0x2C
call LCD_E ; clock 2
bcf PORTC,3 ;
bsf PORTC,4
bsf PORTC,5 ; clock C
call LCD_E
call Delay5 ; 20mS
Func_Set
movlw 06h ; 2 line display,5X8
call LCD_CMD_Write ; set to command mode
movlw 0Eh ; 00001101 Set display on/off and cursor command
call LCD_CMD_Write
movlw 01h
call LCD_CMD_Write
return
movlw 06h ; 2 line display,5X8
call LCD_CMD_Write ; set to command mode
No! It's not required in the real wold.. I tried several combinations before it would work in ISIS..... It must be a bit of a bug....
I didn't change the REM statements.... I should have really!!! Sorry