WAIT_LCD:
        mov	LCDDATA,0FFh		;make P0.7 input port
        CLR	RS		;RS=0 access command
        SETB	RW		;R/W=1 read command
LCD_WAIT_BACK:	
        SETB	EN		;E=1 for H-to-L pulse
	NOP
	NOP
	NOP
	NOP
	MOV	A,LCDDATA
	CLR	EN		;E=0 H-to-l pulse
	JB	ACC.7,LCD_WAIT_BACK		;stay until busy flag=0
	RET