I am having a problem with the busy flag never clearing (always stays high)
CFAH2004A-GGB-JP
this is my init code.
notes:
-delayshort is about a 500ms delay.
-blink is a simple routine to blink an led.
-lcdputcmd2 sends the value in w to the lcd without checking the busy flag.
-lcdputcmd sends the value after checking the busy flag
LCDINIT
; Busy-flag is not yet valid
CLRF LCD_CTRL ; ALL PORTA output should output Low.
call blink
call blinkfast
MOVLW 0x038 ; 8-bit-interface, 2-lines
call LCDPUTCMD2
call blink
call blink
MOVLW 0x038 ; 8-bit-interface, 2-lines
call LCDPUTCMD2
call DELAYSHORT
MOVLW 0x038 ; 8-bit-interface, 2-lines
call LCDPUTCMD2
call DELAYSHORT
; bsf LCD_CTRL, LCD_E
; call DELAYSHORT
; bcf LCD_CTRL, LCD_E
call blink
call blinkfast
MOVLW 0x038 ; 8-bit-interface, 2-lines
call LCDPUTCMD2
MOVLW 0x008 ; disp.off, curs.off, no-blink
call LCDPUTCMD
call blink
call blink
movlw 0x001
call LCDPUTCMD
MOVLW 0x006 ; Entry Mode
call LCDPUTCMD
MOVLW 0x00C ; Display On Cursor Off
call LCDPUTCMD
CFAH2004A-GGB-JP
this is my init code.
notes:
-delayshort is about a 500ms delay.
-blink is a simple routine to blink an led.
-lcdputcmd2 sends the value in w to the lcd without checking the busy flag.
-lcdputcmd sends the value after checking the busy flag
LCDINIT
; Busy-flag is not yet valid
CLRF LCD_CTRL ; ALL PORTA output should output Low.
call blink
call blinkfast
MOVLW 0x038 ; 8-bit-interface, 2-lines
call LCDPUTCMD2
call blink
call blink
MOVLW 0x038 ; 8-bit-interface, 2-lines
call LCDPUTCMD2
call DELAYSHORT
MOVLW 0x038 ; 8-bit-interface, 2-lines
call LCDPUTCMD2
call DELAYSHORT
; bsf LCD_CTRL, LCD_E
; call DELAYSHORT
; bcf LCD_CTRL, LCD_E
call blink
call blinkfast
MOVLW 0x038 ; 8-bit-interface, 2-lines
call LCDPUTCMD2
MOVLW 0x008 ; disp.off, curs.off, no-blink
call LCDPUTCMD
call blink
call blink
movlw 0x001
call LCDPUTCMD
MOVLW 0x006 ; Entry Mode
call LCDPUTCMD
MOVLW 0x00C ; Display On Cursor Off
call LCDPUTCMD
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.