技术热线: 4007-888-234

PIC16F628A单片机和DEB32240A

更新时间: 2019-03-23
阅读量:1915

PIC16F628A单片机和DEB32240A-01W嵌入式模组实现320×240单色显示的典型应用

硬件原理图(触摸屏、键盘由DTK6404A模组实现)



软件编程举例

;DISPLAY "123" AT (0,0)

DISPLAY CLRWDT

MOVLW 0AAH

CALL SEND_BYTE

MOVLW 53H ;DISPLAY ASCII

CALL SEND_BYTE

MOVLW 00H ;PSXH

CALL SEND_BYTE

MOVLW 00H ;PSXL

CALL SEND_BYTE

MOVLW 00H ;PSY

CALL SEND_BYTE

MOVLW 31H ;'1'

CALL SEND_BYTE

MOVLW 32H ;'2'

CALL SEND_BYTE

MOVLW 33H ;'3'

CALL SEND_BYTE

RETURN

SEND_BYTE MOVWF TXREG

TI_TST NOP

BTFSS PIR1,TXIF

GOTO TI_TST

BCF PIR1,TXIF

RETURN