51單片機實現(xiàn)的多圖顯示用12864液晶驅(qū)動程序設(shè)計_第1頁
51單片機實現(xiàn)的多圖顯示用12864液晶驅(qū)動程序設(shè)計_第2頁
51單片機實現(xiàn)的多圖顯示用12864液晶驅(qū)動程序設(shè)計_第3頁
51單片機實現(xiàn)的多圖顯示用12864液晶驅(qū)動程序設(shè)計_第4頁
51單片機實現(xiàn)的多圖顯示用12864液晶驅(qū)動程序設(shè)計_第5頁
已閱讀5頁,還剩28頁未讀 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

-.z51單片機實現(xiàn)的多圖顯示用12864液晶驅(qū)動程序設(shè)計佚名日期:2010年06月02日來源:不詳【字體:大中小】我要評論(0)核心提示:

/************************************************程序名稱:12864液晶驅(qū)動程序〔顯示多圖〕簡要說明:控制器:KS0107LCD型號:FM12864、TS12864A-2或兼容型號〔不帶字庫〕&nbs/************************************************

程序名稱:12864液晶驅(qū)動程序〔顯示多圖〕

簡要說明:控制器:KS0107

LCD型號:FM12864、TS12864A-2或兼容型號〔不帶字庫〕

MCU:AT89S5*,晶體頻率:11.0592MHz

取模方式:縱向取模、字節(jié)倒序

CS1和CS2為高電平有效

************************************************/

;***************硬件端口定義***********

RSEQUP2.0

RWEQUP2.1

EEQUP2.2

CS1EQUP2.3

CS2EQUP2.4

RSTEQUP2.5

EQU20H;指令數(shù)據(jù)存放器

DATEQU21H;顯示數(shù)據(jù)存放器;**********************************主程序入口地址

ORG0000H

AJMPSTR

ORG0003H

;*********************************中斷程序入口地址

STR:

AJMPL0100

L0100:CLRRST

NOP

NOP

SETBRST

;********************************以上是軟件復位

MOVSP,*60H

MOVIE,*81H;中斷允許

MOVIP,*01H;優(yōu)先中斷

MOVTCON,*00H;電平中斷

MOV,*3FH;顯示開

LCALLS02A9;左半屏寫指令子程序

LCALLS02C1;右半屏寫指令子程序

;----------------------------------------------------------------------

MOV,*0C0H;第一行

LCALLS02A9;左半屏寫指令子程序

LCALLS02C1;右半屏寫指令子程序

;----------------------------------------------------------------------

MOV,*0B8H;第一頁

LCALLS02A9;左半屏寫指令子程序

LCALLS02C1;右半屏寫指令子程序

;----------------------------------------------------------------------

MOV,*40H;第一列

LCALLS02A9;左半屏寫指令子程序

LCALLS02C1;右半屏寫指令子程序

;********************************************************以上是軟件初始化

MOVB,*0AAH

LCALL*IH*;顯示橫線1

LCALLDELAY

;MOVB,*55H

;LCALL*IH*

;LCALLDELAY;顯示橫線2

MOVB,*0FFH

MOV29H,*00H

LCALL*IS*

LCALLDELAY;顯示豎線1

;MOVB,*00H

;MOV29H,*0FFH

;LCALL*IS*

;LCALLDELAY;顯示豎線2MOVDPTR,*TAB1

LCALLLEFT

MOVDPTR,*TAB2

LCALLRIGHT

LCALLDELAY;顯示第一幅圖片MOVDPTR,*TAB3

LCALLLEFT

MOVDPTR,*TAB4

LCALLRIGHT

LCALLDELAY;顯示第二幅圖片MOVDPTR,*TAB5

LCALLLEFT

MOVDPTR,*TAB6

LCALLRIGHT

LCALLDELAY;顯示第三幅圖片

AJMPL0100

;=======================================================以上是主程序

LEFT:MOVR1,*0B8H

_AB:MOV,R1;第一頁

LCALLS02A9;左半屏寫指令子程序

MOV,*40H;第一列

LCALLS02A9;左半屏寫指令子程序

MOVR0,*64

S027B:MOVA,*00H

MOVCA,A+DPTR

MOVDAT,A

LCALLS02B1;左半屏寫數(shù)據(jù)子程序

INCDPTR

DJNZR0,S027B

INCR1

CJNER1,*0C0H,_AB

RET

;======================================================以上是左半屏寫數(shù)據(jù)子程序

RIGHT:MOVR1,*0B8H

ABC:MOV,R1;第一頁

LCALLS02C1;右半屏寫指令子程序

MOV,*40H;第一列

LCALLS02C1;右半屏寫指令子程序

MOVR0,*64

S027D:MOVA,*00H

MOVCA,A+DPTR

MOVDAT,A

LCALLS02B9;右半屏寫數(shù)據(jù)子程序

INCDPTR

DJNZR0,S027D

INCR1

CJNER1,*0C0H,ABC

RET;*******************************************************以上是右半屏寫數(shù)據(jù)子程序*IH*:MOVR1,*0B8H

BA:MOV,R1;第一頁

LCALLS02A9;左半屏寫指令子程序

LCALLS02C1;右半屏寫指令子程序

MOV,*40H;第一列

LCALLS02A9;左半屏寫指令子程序

LCALLS02C1;右半屏寫指令子程序

MOVR0,*64

W027B:MOVDAT,B

LCALLS02B1;左半屏寫數(shù)據(jù)子程序

LCALLS02B9;右半屏寫數(shù)據(jù)子程序

DJNZR0,W027B

INCR1

CJNER1,*0C0H,BA

RET

;---------------------------------------------------------

*IS*:MOVR1,*0B8H

CA:MOV,R1;第一頁

LCALLS02A9;左半屏寫指令子程序

LCALLS02C1;右半屏寫指令子程序

MOV,*40H;第一列

LCALLS02A9;左半屏寫指令子程序

LCALLS02C1;右半屏寫指令子程序

MOVR0,*32

*027B:MOVDAT,B

LCALLS02B1;左半屏寫數(shù)據(jù)子程序

LCALLS02B9;右半屏寫數(shù)據(jù)子程序

MOVDAT,29H

LCALLS02B1;左半屏寫數(shù)據(jù)子程序

LCALLS02B9;右半屏寫數(shù)據(jù)子程序

DJNZR0,*027B

INCR1

CJNER1,*0C0H,CA

RET

;****************************************************以上是顯示線條程序

S02A9:SETBCS1

LCALLS02C9

CLRCS1;左半屏寫指令子程序

RET

S02B1:SETBCS1;左半屏寫數(shù)據(jù)子程序

LCALLS02E0

CLRCS1

RETS02C1:SETBCS2;右半屏寫指令子程序

LCALLS02C9

CLRCS2

RETS02B9:SETBCS2;右半屏寫數(shù)據(jù)子程序

LCALLS02E0

CLRCS2

RET

;****************************************************S02C9:CLRRS

SETBRW

S02C9A:MOVP0,*0FFH

SETBE

MOVA,P0

CLRE

ACC.7,S02C9A

CLRRW

MOVP0,

SETBE

NOP

CLRE

RET

;*************************************************以上是寫指令子程序

S02E0:CLRRS

SETBRW

S02E0A:MOVP0,*0FFH

SETBE

MOVA,P0

CLRE

ACC.7,S02E0A

SETBRS

CLRRW

MOVP0,DAT

SETBE

NOP

CLRE

RET

;************************************************以上是寫數(shù)據(jù)子程序DELAY:MOVR5,*0BH;延時

D1:MOVR7,*0FFH

D2:MOVR6,*0FFH

D3:DJNZR6,$

DJNZR7,D2

DJNZR5,D1

RET

;****************************************************************

TAB1:

;--調(diào)入了一幅圖像:C\128*64-1.bmp--

;--寬度*高度=64*64--

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,080H,080H,0C0H,0C0H

DB0E0H,0E0H,0E0H,0F0H,0F0H,0F0H,0F0H,0F0H,0F8H,0F8H,0F8H,0F8H,0F8H,0F8H,0F8H,0F8H

DB0FCH,0FCH,0FCH,0FCH,0FCH,0FCH,0FCH,0FCH,0FCH,0FCH,07CH,078H,078H,038H,038H,030H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,0E0H,0F0H,0FCH,0FEH,0FFH,0FFH,0FFH,0FFH,0FFH

DB0FFH,0FFH,0FFH,0FFH,0EFH,0CFH,0E7H,0E7H,0E7H,0F3H,073H,033H,03BH,019H,00DH,08DH

DB0CDH,0E7H,0F6H,0FEH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,07FH,03EH,01CH,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,0E0H,0E0H,0F0H,0F0H,0F0H,0F8H,0F9H,0FDH,0FDH,0FDH,0DFH,09FH,08EH,08FH,08FH

DB08FH,00FH,00FH,00FH,00FH,00FH,007H,003H,001H,060H,060H,06CH,06CH,06EH,06FH,067H

DB067H,0E7H,0F7H,0F7H,0F3H,0F3H,0F3H,0F3H,0F9H,0F9H,0F8H,0F8H,0FCH,0FCH,0FEH,0FEH

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,001H,00FH,07FH,0FFH,0FFH,0FFH,0FFH,0FFH,07FH,01FH,00FH,007H,003H,003H,001H

DB081H,0E0H,0F0H,0F8H,0FCH,0FEH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FEH,0FEH,0FEH,0FEH

DB0FEH,0FCH,0FCH,0FCH,0F8H,0F0H,061H,001H,001H,003H,003H,007H,0DFH,0FFH,0FFH,0FFH

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,001H,00FH,07FH,0FFH,0FFH,0E0H,0C0H,0C0H,080H,000H,000H,000H

DB003H,007H,00FH,00FH,00FH,00FH,00FH,00FH,00FH,00FH,00FH,00FH,00FH,00FH,00FH,007H

DB087H,087H,0C3H,0C3H,0C1H,0E0H,0F0H,0F0H,0F8H,0FCH,0FCH,0FFH,0FFH,0FFH,0FFH,0FFH

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,001H,00FH,07FH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

DB0FEH,0FEH,0FEH,0FEH,0FEH,0FEH,0FEH,0FEH,0FEH,0FEH,0FEH,0FEH,0FFH,0FFH,0FFH,0FFH

DB0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,07FH,07FH,03FH,03FH,03FH,01FH,01FH,01FH,00FH

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,003H,00FH,07FH,0FFH,0FFH,0FFH

DB0FFH,07FH,07FH,03FH,03FH,03FH,01FH,01FH,01FH,00FH,00FH,00FH,007H,007H,003H,003H

DB003H,001H,001H,001H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000HTAB2:

;--調(diào)入了一幅圖像:C:\128*64-2.bmp--

;--寬度*高度=64*64--

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,080H,080H,080H,0C0H

DB0C0H,0C0H,0E0H,0E0H,0E0H,0F0H,0F0H,0F8H,0F8H,0F8H,0FCH,0FCH,0FCH,0FEH,0FEH,0FFH

DB0FFH,0FFH,0FFH,0FEH,0F8H,0C0H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB030H,038H,078H,0F8H,0FCH,0FCH,0FCH,0FEH,0FEH,0FEH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

DB0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

DB0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FEH,0F0H,0C0H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,080H,0C0H,0F1H,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

DB0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

DB0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FEH,0F0H,080H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,03FH,007H,001H,001H,001H,001H,001H

DB0E1H,0FDH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,01FH,007H,001H,001H,001H,0C1H,0C1H

DB001H,001H,001H,007H,01FH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FEH,0F0H,080H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,03FH,007H,001H,000H,000H,000H,000H,0E0H,0F8H,0FFH

DB0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,03FH,007H,000H,000H,000H,000H,038H,03EH,03FH,0BFH

DB0BFH,0F8H,0C0H,0C0H,0E0H,0E0H,0E7H,0FFH,0FFH,09FH,01FH,00FH,00FH,007H,007H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB0FFH,0FFH,0FFH,0FFH,0EFH,0E1H,0E0H,0E0H,0E0H,0E0H,0E0H,0F8H,07FH,07FH,07FH,03FH

DB03FH,03FH,07FH,07FH,07FH,078H,07CH,07CH,07CH,07EH,00EH,007H,003H,003H,003H,003H

DB003H,003H,003H,00FH,03FH,07FH,07FH,07FH,07FH,07FH,07CH,070H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB00FH,00FH,007H,007H,003H,003H,003H,001H,001H,001H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000HTAB3:

;--調(diào)入趣味性文字和圖片像右半屏:縱向取模下高位,數(shù)據(jù)排列:從左到右從上

;--寬度*高度=64*64--

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,0E0H,0C0H,080H,0C0H,0F8H,0F0H,0B0H

DB060H,068H,0D0H,0F0H,0F0H,020H,020H,060H,0C0H,0C0H,0C0H,0C0H,080H,080H,080H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,0C0H,0F0H,0FCH,0EFH,0F3H,0F9H,0FCH,0F1H,07BH,07DH,03FH

DB03EH,038H,03EH,03CH,03DH,038H,03FH,03FH,03EH,03EH,03FH,03FH,03FH,03FH,07FH,07FH

DB0FFH,0FEH,0FEH,0FCH,0F8H,0F0H,0E0H,080H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,0E0H,0FEH,0FFH,0FFH,0FFH,07FH,007H,001H,000H,000H,008H,008H,008H

DB010H,010H,020H,040H,000H,000H,000H,000H,000H,040H,020H,010H,010H,008H,008H,008H

DB000H,000H,001H,007H,03FH,0FFH,0FFH,0FFH,0FEH,0E0H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,080H,09FH,0FFH,0FFH,063H,061H,0E0H,0E0H,0F0H,0F0H,0F0H,0F0H,0D0H,080H

DB010H,010H,020H,020H,0C0H,060H,060H,060H,0C0H,0E0H,0E0H,0F0H,0F0H,0F0H,0F0H,0D0H

DB010H,010H,010H,020H,0E0H,060H,061H,0FFH,0FFH,09FH,080H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB006H,009H,010H,010H,020H,039H,060H,080H,001H,003H,007H,007H,007H,007H,007H,007H

DB007H,004H,004H,022H,041H,040H,040H,040H,041H,023H,007H,007H,007H,007H,007H,007H

DB007H,004H,004H,002H,001H,080H,060H,039H,020H,010H,010H,019H,0E6H,000H,004H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,080H,0C0H,0C0H,0E1H,0E2H,0E2H,0F4H,0F4H,0F4H,0F8H,0F8H

DB0F8H,0F0H,0F0H,0F0H,090H,090H,090H,090H,090H,070H,0F0H,0F0H,0E8H,0E8H,0E8H,0C4H

DB0C4H,084H,082H,002H,0FBH,0F4H,0E4H,0F4H,0FCH,004H,002H,001H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,007H,00FH,01FH,03FH,03FH,07FH,07FH,0FFH,021H,001H,003H,007H

DB00FH,09FH,0FFH,0FFH,0FFH,0FEH,0F9H,0F7H,0FEH,0F8H,0FFH,0FFH,0FFH,0FFH,0FFH,0E7H

DB00FH,00FH,01FH,01FH,03FH,03FH,03FH,03FH,01FH,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,001H,002H,004H,004H,004H

DB002H,001H,00FH,03FH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

DB0FFH,0FCH,0F0H,060H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000HTAB4:

;--調(diào)入了一幅圖像:帥呆了吧

DB000H,000H,0E0H,000H,0F8H,000H,0E0H,020H,0F8H,020H,020H,0E0H,000H,000H,000H,078H

DB048H,048H,0C8H,048H,048H,078H,000H,000H,000H,000H,008H,008H,008H,008H,0C8H,048H

DB028H,018H,008H,000H,000H,0F0H,010H,0F0H,000H,0F0H,010H,010H,0F0H,010H,0F8H,010H

DB000H,000H,000H,000H,000H,000H,000H,000H,0E0H,0F0H,0F0H,0E0H,000H,000H,000H,000H

DB000H,020H,017H,008H,007H,000H,00FH,000H,03FH,000H,008H,00FH,000H,021H,011H,009H

DB005H,003H,03FH,003H,005H,009H,011H,011H,000H,000H,000H,000H,020H,020H,03FH,000H

DB000H,000H,000H,000H,000H,007H,004H,007H,000H,01FH,021H,021H,021H,021H,021H,038H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,01BH,01BH,000H,000H,000H,000H,000H

DB000H,0F4H,05CH,034H,05CH,0F4H,000H,05CH,048H,07EH,048H,048H,000H,040H,05EH,0D4H

DB054H,054H,040H,0DEH,054H,054H,052H,058H,000H,000H,002H,002H,002H,002H,0F2H,012H

DB00AH,006H,002H,000H,000H,0FCH,084H,084H,0FCH,000H,03AH,022H,0A2H,0FEH,022H,022H

DB000H,000H,000H,000H,000H,000H,000H,000H,038H,0FCH,0FCH,038H,000H,000H,000H,000H

DB000H,00FH,005H,005H,005H,00FH,000H,00FH,009H,009H,009H,00FH,000H,00AH,009H,00BH

DB005H,003H,000H,00FH,00AH,009H,009H,00EH,000H,000H,000H,000H,008H,008H,00FH,000H

DB000H,000H,000H,000H,000H,001H,000H,008H,009H,004H,002H,009H,008H,00FH,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,006H,006H,000H,000H,000H,000H,000H

DB000H,018H,0FFH,008H,050H,044H,044H,0FFH,044H,044H,07CH,040H,000H,020H,022H,02AH

DB0B2H,062H,0FFH,062H,0B2H,02AH,022H,020H,000H,004H,004H,0FFH,004H,004H,0FCH,000H

DB0FCH,004H,004H,0FCH,000H,000H,000H,000H,0C1H,031H,00EH,030H,0C0H,000H,000H,000H

DB000H,000H,000H,07CH,055H,056H,0FCH,056H,055H,054H,07CH,000H,000H,000H,000H,000H

DB000H,000H,007H,0C4H,004H,002H,001H,0C0H,001H,002H,004H,004H,000H,002H,002H,0C1H

DB000H,000H,087H,080H,080H,0C1H,082H,002H,000H,004H,003H,080H,044H,004H,003H,000H

DB0C7H,002H,002H,007H,000H,004H,082H,001H,000H,0C0H,000H,000H,000H,0C1H,002H,004H

DB000H,001H,001H,0C1H,041H,041H,0C7H,041H,041H,041H,0C1H,001H,000H,000H,000H,000H

DB000H,000H,080H,07FH,012H,012H,012H,013H,0F2H,002H,002H,002H,000H,061H,019H,0FFH

DB009H,091H,07FH,000H,000H,0FFH,000H,0C0H,000H,0FFH,091H,091H,091H,0FFH,004H,00BH

DB031H,001H,001H,0FFH,000H,002H,0FFH,002H,002H,07FH,022H,022H,022H,07FH,002H,002H

DB000H,020H,020H,017H,08DH,075H,007H,005H,0FDH,015H,027H,020H,000H,000H,000H,000H

DB000H,001H,000H,000H,000H,000H,000H,000H,001H,000H,000H,000H,000H,000H,000H,001H

DB001H,000H,000H,000H,000H,001H,001H,001H,000H,001H,000H,000H,000H,001H,000H,000H

DB001H,001H,001H,000H,000H,000H,001H,001H,001H,001H,001H,001H,001H,001H,001H,001H

DB000H,000H,001H,001H,000H,000H,000H,000H,001H,000H,000H,000H,000H,000H,000H,000H

TAB5:

;--調(diào)入圖像:縱向取模下高位,數(shù)據(jù)排列:從左到右從上到下

;--寬度*高度=64*64--

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,0C0H,0E0H,0E0H,0F0H,0F0H,0F0H,0F0H

DB0F0H,0F0H,0F8H,0BCH,01CH,08CH,0CEH,0CFH,0CFH,0EBH,0C9H,0D0H,090H,010H,010H,010H

DB020H,021H,061H,041H,043H,0C2H,08CH,000H,001H,001H,002H,006H,00CH,00FH,010H,03EH

DB023H,046H,085H,089H,019H,033H,066H,08DH,0DBH,0F9H,0A6H,02FH,03FH,007H,08FH,0CFH

DB000H,000H,000H,080H,0E0H,0F0H,0F0H,0F0H,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

DB0FFH,07FH,0FFH,0EFH,0FFH,0FFH,0FFH,0FFH,07FH,06FH,037H,01BH,00FH,007H,001H,00FH

DB009H,00AH,00EH,006H,006H,004H,004H,00CH,008H,018H,010H,020H,060H,040H,0C0H,080H

DB000H,000H,000H,001H,0C3H,007H,00DH,037H,022H,0C2H,083H,001H,00FH,037H,01FH,037H

DB000H,000H,000H,0FFH,0FFH,0FFH,0FFH,01FH,006H,0C6H,0E6H,066H,07EH,0FFH,0EFH,0D1H

DB0D9H,0E9H,0E9H,0F9H,0F2H,0E6H,01CH,030H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,001H

DB003H,0C6H,078H,0B0H,0E0H,083H,00EH,018H,0E0H,080H,003H,00EH,038H,0C0H,018H,0F0H

DB000H,000H,000H,000H,007H,00FH,01FH,01FH,01CH,0FFH,07FH,060H,038H,027H,079H,0C1H

DB0F3H,0F3H,0FFH,0FFH,078H,03FH,002H,000H,000H,000H,000H,000H,000H,000H,002H,071H

DB039H,019H,0F9H,0F9H,0F9H,0FBH,0FBH,073H,073H,0E6H,0CEH,09CH,038H,030H,000H,000H

DB000H,01FH,0E0H,0FFH,0FFH,0FFH,0FCH,0F8H,0E0H,087H,0F8H,000H,000H,007H,0FEH,0F1H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,07FH,0C0H,000H,000H,000H,000H,000H

DB080H,000H,000H,010H,010H,000H,020H,020H,020H,000H,000H,000H,000H,000H,01CH,03EH

DB070H,07CH,07CH,078H,0FFH,0FFH,07FH,07EH,03EH,01FH,003H,003H,002H,000H,000H,000H

DB000H,000H,000H,0FBH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,000H,000H,000H,0FFH,0F3H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,003H,018H,0E0H,000H,000H,000H

DB003H,006H,00EH,00EH,00EH,018H,018H,018H,008H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,080H

DB0C0H,0C6H,0EFH,0A7H,073H,07BH,009H,084H,0CCH,0E3H,0FFH,0F8H,0FCH,0FEH,0FFH,0FFH

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,002H,006H

DB000H,00CH,008H,008H,000H,010H,010H,010H,010H,010H,018H,018H,008H,084H,084H,004H

DB006H,0F2H,0B2H,016H,034H,0E4H,004H,004H,004H,00CH,0CCH,08CH,01CH,018H,03FH,03FH

DB07CH,0DEH,0DFH,0DFH,0EEH,0F7H,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH

DB000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H,000H

DB000H,000H,000H,000H,000H,000H,000H,004H,004H,00EH,036H,064H,07CH,018H,001H,003H

DB00EH,000H,001H,001H,003H,001H,000H,000H,000H,000H,003H,003H,003H,001H,000H,000H

DB000H,000H,001H,007H,00FH,03FH,07FH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFH,0FFHTAB6:

;--調(diào)入圖像:縱向取模下高位,數(shù)據(jù)排列:從左到右從上到下

;--寬度*高度=64*64

;--調(diào)入了一幅圖像:我們年輕.bmp--

;--寬度*高度=64*64--

DB000h,000h,000h,000h,000h,000h,000h,000h,080h,080h,000h,0C0h,000h,080h,000h,000h

DB000h,000h,000h,000h,000h,0C0h,000h,040h,080h,000h,080h,080h,080h,000h,000h,000h

DB000h,000h,0C0h,000h,000h,000h,000h,000h,000h,000h,080h,000h,000h,000h,000h,000h

DB0C0h,000h,000h,000h,080h,080h,080h,080h,080h,000h,000h,000h,000h,000h,000h,000h

DB000h,000h,000h,044h,044h,045h,025h,0FFh,014h,014h,084h,07Fh,0C4h,024h,015h,084h

DB000h,000h,008h,004h,0FFh,000h,0FFh,000h,000h,000h,000h,000h,0FFh,000h,000h,000h

DB044h,042h,079h,049h,049h,049h,0FFh,049h,049h,049h,049h,041h,000h,000h,089h,08Fh

DB049h,0FDh,029h,001h,028h,024h,0E2h,023h,024h,008h,000h,000h,000h,000h,000h,000h

DB000h,000h,000h,080h,080h,088h,0B2h,003h,020h,0A1h,028h,030h,020h,0E1h,022h,023h

DB000h,000h,080h,040h,03Bh,020h,023h,020h,0E0h,020h,020h,022h,033h,020h,000h,000h

DB020h,0E0h,038h,0A0h,020h,020h,013h,090h,050h,070h,090h,000h,000h,000h,020h,0A0h

DB0A8h,0B3h,0A0h,0A2h,082h,0FAh,083h,092h,0A2h,082h,000h,000h,000h,000h,000h,000h

DB000h,000h,000h,000h,040h,020h,01Fh,020h,050h,048h,045h,042h,045h,048h,050h,040h

DB000h,000h,008h,008h,00Fh,009h,009h,009h,07Fh,009h,009h,009h,009h,008h,000h,000h

DB011h,011h,009h,07Fh,005h,040h,045h,044h,07Ch,044h,044h,041h,000h,000h,020h,01Bh

DB042h,07Eh,00Ah,053h,020h,01Fh,000h,07Fh,040h,070h,000h,000h,000h,000h,000h,000h

DB000h,000h,000h,000h,040h,040h,040h,05Fh,055h,055h,0D5h,055h,05Fh,040h,040h,040h

DB000h,000h,010h,011h,0F6h,000h,000h,0FCh,056h,055h,054h,05Eh,0C4h,000h,000h,000h

DB010h,0D4h,014h,0FFh,094h,094h,022h,022h,0FEh,022h,022h,020h,000h,000h,008h,008h

DB008h,008h,0C8h,03Fh,048h,088h,008h,008h,00Ch,008h,000h,000h,000h,000h,000h,000h

DB000h,000h,000h,000h,000h,0C8h,044h,043h,0C4h,008h,0CFh,049h,049h,049h,0E9h,048h

DB000h,000h,008h,084h,0C3h,0A4h,088h,00Bh,00Ah,0EAh,08Ah,08Ah,08Bh,008h,000h,000h

DB08Ch,003h,004h,0E7h,008h,008h,008h,0E8h,00Bh,008h,008h,008h,000h,000h,048h,044h

DB042h,041h,040h,041h,046h,040h,041h,042h,06Ch,044h,000h,000h,000h,000h,000h,000h

DB000h,000h,000h,000h,000h,0FFh,022h,025h,018h,000h,0FFh,044h,044h,044h,0FFh,000h

DB000h,000h,000h,0FFh,088h,088h,0FFh,002h,005h,018h,080h,000h,0FFh,000h,000h,000h

DB020h,013h,008h,0FFh,002h,002h,002h,0FFh,002h,002h,002h,002h,000h,000h,000h,0FFh

DB009h,011h,0FFh,000h,000h,0FFh,009h,011h,0FFh,000h,000h,000h,000h,000h,000h,000h

DB000h,000h,000h,000h,000h,001h,000h,000h,000h,000h,000h,000h,000h,000h,000h,000h

DB000h,000h,000h,001h,000h,000h,001h,000h,000h,000h,000h,001h,000h,000h,000h,000h

DB000h,000h,000h,001h,000h,001h,001h,001h,001h,001h,001h,000h,000h,000h,000h,001h

DB000h,001h,001h,000h,000h,001h,000h,001h,001h,000h,000h,000h,000h,000h,000h,000hEND上傳兩個顯示畫面液晶屏是朋友托賣的,無背光無字庫,帶負壓產(chǎn)生電路,有些成色比擬新,先到先得了,45RMB一塊,送資料,驅(qū)動程序,QQ175137697以下是程序//**************************************;*控制器:KS0107*;*LCD型號:TS12864A-2或兼容型號*;*MCU:AT89S5*,晶體頻率:11.0592MHz*;*取模方式:縱向字節(jié)倒序*;*CS1和CS2為高電平有效**;***************硬件端口定義***********RSEQUP2.4RWEQUP2.3EEQUP2.2CS1EQUP2.7CS2EQUP2.6RSTEQUP2.5BUFEQUP0;******************************************EQU20H;指令數(shù)據(jù)存放器DATEQU21H;顯示數(shù)據(jù)存放器;**********************************主程序入口地址ORG0000HAJMPSTRORG0003H;*********************************中斷程序入口地址STR:AJMPL0100L0100:CLRRSTNOPNOPSETBRST;********************************以上是軟件復位MOVSP,*60HMOVIE,*81H;中斷允許MOVIP,*01H;優(yōu)先中斷MOVTCON,*00H;電平中斷MOV,*3FH;顯示開LCALLS02A9;左半屏寫指令子程序LCALLS02C1;右半屏寫指令子程序;----------------------------------------------------------------------MOV,*0C0H;第一行LCALLS02A9;左半屏寫指令子程序LCALLS02C1;右半屏寫指令子程序;----------------------------------------------------------------------MOV,*0B8H;第一頁LCALLS02A9;左半屏寫指令子程序LCALLS02C1;右半屏寫指令子程序;----------------------------------------------------------------------MOV,*40H;第一列LCALLS02A9;左半屏寫指令子程序LCALLS02C1;右半屏寫指令子程序;********************************************************以上是軟件初始化MOVB,*0AAHLCALL*IH*;顯示橫線1LCALLDELAYMOVB,*55HLCALL*IH*LCALLDELAY;顯示橫線2MOVB,*0FFHMOV29H,*00HLCALL*IS*LCALLDELAY;顯示豎線1MOVB,*00HMOV29H,*0FFHLCALL*IS*LCALLDELAY;顯示豎線2MOVDPTR,*TAB1LCALLLEFTMOVDPTR,*TAB2LCALLRIGHTLCALLDELAY;顯示第一幅圖片MOVDPTR,*TAB3LCALLLEFTMOVDPTR,*TAB4LCALLRIGHTLCALLDELAY;顯示第二幅圖片MOVDPTR,*TAB5LCALLLEFTMOVDPTR,*TAB6LCALLRIGHTLCALLDELAY;顯示第三幅圖片AJMPL0100;=======================================================以上是主程序LEFT:MOVR1,*0B8H_AB:MOV,R1;第一頁LCALLS02A9;左半屏寫指令子程序MOV,*40H;第一列LCALLS02A9;左半屏寫指令子程序MOVR0,*64S027B:MOVA,*00HMOVCA,A+DPTRMOVDAT,ALCALLS02B1;左半屏寫數(shù)據(jù)子程序INCDPTRDJNZR0,S027BINCR1CJNER1,*0C0H,_ABRET;======================================================以上是左半屏寫數(shù)據(jù)子程序RIGHT:MOVR1,*0B8HABC:MOV,R1;第一頁LCALLS02C1;右半屏寫指令子程序MOV,*40H;第一列LCALLS02C1;右半屏寫指令子程序MOVR0,*64S027D:MOVA,*00HMOVCA,A+DPTRMOVDAT,ALCALLS02B9;右半屏寫數(shù)據(jù)子程序INCDPTRDJNZR0,S027DINCR1CJNER1,*0C0H,ABCRET;*******************************************************以上是右半屏寫數(shù)據(jù)子程序*IH*:MOVR1,*0B8HBA:MOV,R1;第一頁LCALLS02A9;左半屏寫指令子程序LCALLS02C1;右半屏寫指令子程序MOV,*40H;第一列LCALLS02A9;左半屏寫指令子程序LCALLS02C1;右半屏寫指令子程序MOVR0,*64W027B:MOVDAT,BLCALLS02B1;左半屏寫數(shù)據(jù)子程序LCALLS02B9;右半屏寫數(shù)據(jù)子程序DJNZR0,W027BINCR1CJNER1,*0C0H,BARET;---------------------------------------------------------*IS*:MOVR1,*0B8HCA:MOV,R1;第一頁LCALLS02A9;左半屏寫指令子程序LCALLS02C1;右半屏寫指令子程序MOV,*40H;第一列LCALLS02A9;左半屏寫指令子程序LCALLS02C1;右半屏寫指令子程序MOVR0,*32*027B:MOVDAT,BLCALLS02B1;左半屏寫數(shù)據(jù)子程序LCALLS02B9;右半屏寫數(shù)據(jù)子程序MOVDAT,29HLCALLS02B1;左半屏寫數(shù)據(jù)子程序LCALLS02B9;右半屏寫數(shù)據(jù)子程序DJNZR0,*027BINCR1CJNER1,*0C0H,CARET;****************************************************以上是顯示線條程序S02A9:SETBCS1LCALLS02C9CLRCS1;左半屏寫指令子程序RETS02B1:SETBCS1;左半屏寫數(shù)據(jù)子程序LCALLS02E0CLRCS1RETS02C1:SETBCS2;右半屏寫指令子程序LCALLS02C9CLRCS2RETS02B9:SETBCS2;右半屏寫數(shù)據(jù)子程序LCALLS02E0CLRCS2RET;****************************************************S02C9:CLRRSSETBRWS02C9A:MOVBUF,*0FFHSETBEMOVA,BUFCLREACC.7,S02C9ACLRRWMOVBUF,SETBENOPCLRERET;*************************************************以上是寫指令子程序S02E0:CLRRSSETBRWS02E0A:MOVBUF,*0FFHSETBEMOVA,BUFCLREACC.7,S02E0ASETBRSCLRRWMOVBUF,DATSETBENOPCLRERET;************************************************以上是寫數(shù)據(jù)子程序DELAY:MOVR5,*0BH;延時D1:MOVR7,*0FFHD2:MOVR6,*0FFHD3:DJNZR6,$DJNZR7,D2DJNZR5,D1RET;****************************************************************TAB1:;--調(diào)入菲戈幅圖像左半屏:縱向取模下高位,

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論