PIC16Fxxx的LCD驱动程序(适用于HD44780兼容
;*******************************************************************
;* L2homeLCD - Moves the cursor to home position on Line 2 *
;*******************************************************************
L2homeLCD
movlw DD_RAM_ADDR|0x28 ; Send command to move cursor to
call SendCmd ; home position on line 2
return
;*******************************************************************
;* Delay - Generic LCD delay (1.024mS @ 4MHz) *
;* Since the microcontroller can not read the busy flag of the *
;* LCD, a specific delay needs to be executed between writes to *
;* the LCD. *
;*******************************************************************
Delay_1MS ; 2 cycles for call
clrf Count ; 1 cycle to clear counter variable
Dloop
nop
decfsz Count,F ; These two instructions provide a
goto Dloop ; (256 * 3) -1 cycle count
return ; 2 cycles for return
;
;*******************************************************************
;* Delay - 1mS base delay *
;* input : W Reg. *
;* *
;*******************************************************************
Delay_MS
movwf Count1
;
DLop1 call Delay_1MS
decfsz Count1,F
goto DLop1
return
;
END
HD44780 兼容 适用于 驱动程序 LCD PIC16Fxxx 相关文章:
- HD44780读写C51程序(01-07)
- 浅谈DSP系统中的电磁兼容问题(06-08)
- DSP应用系统电磁兼容设计探讨(01-17)
- DSP设计的电磁兼容解决问题 (08-22)
- Android装置常见问题风险(11-30)
- DSP高速系统的电路板级电磁兼容性设计(01-17)