點(diǎn)陣顯示屏成功點(diǎn)亮原理圖程序_第1頁(yè)
點(diǎn)陣顯示屏成功點(diǎn)亮原理圖程序_第2頁(yè)
點(diǎn)陣顯示屏成功點(diǎn)亮原理圖程序_第3頁(yè)
點(diǎn)陣顯示屏成功點(diǎn)亮原理圖程序_第4頁(yè)
點(diǎn)陣顯示屏成功點(diǎn)亮原理圖程序_第5頁(yè)
已閱讀5頁(yè),還剩4頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、16×16點(diǎn)陣顯示屏成功點(diǎn)亮! 看到江同學(xué)的3216屏(),對(duì)于我來(lái)說,稍顯復(fù)雜,所以決定做個(gè)1616的屏看看效果,原理圖就是以下了,注意做1616時(shí),要去掉一個(gè)74ls154(當(dāng)然這里也能換用74hc154,雖然功耗大,但價(jià)格較低),經(jīng)過兩天的奮斗,終于完工了。簡(jiǎn)單的調(diào)試后,點(diǎn)亮了!編個(gè)流動(dòng)顯示的程序,哈哈,很炫啊。心動(dòng)不如趕快行動(dòng)?。?我是把點(diǎn)陣塊焊到一塊板子上,可方便檢查有無(wú)虛焊,控制部分放到了另一張板上,做成的實(shí)物圖就是下面的了,視頻在這里: (注:以下原理圖均來(lái)自)/*程序名稱:led1616點(diǎn)陣流動(dòng)顯示漢字簡(jiǎn)要說明:最大可顯示16*16漢字 p0口接上行線,p2口接下行線

2、,p3口接掃描線編 寫: jiangx.net改 編: springvirus*/#include <at89x52.h>#define hang1 p0 /上行線#define hang2 p2 /下行線#define lie p1 /列線#define sum sizeof(hanzi)/32 /自動(dòng)計(jì)算漢字字?jǐn)?shù)/*參數(shù)設(shè)置*/#define ziti 16 /字體大小(寬度)#define light 50 /顯示亮度#define move_speed 50 /移動(dòng)速度unsigned char code hanzi=/*- 文字: 自 -*/*- 宋體12; 此字體下對(duì)應(yīng)

3、的點(diǎn)陣為:寬x高=16x16 -*/0x00,0x00,0x00,0xf8,0x48,0x48,0x4c,0x4b,0x4a,0x48,0x48,0x48,0xf8,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0x44,0xff,0x00,0x00,0x00,/*- 文字: 制 -*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0x00,0x50,0x4f,0x4a,0x48,0xff,0x48,0x48,0x48,0x00,0xfc,0x00,0x00,0xff,0x00,0

4、x00,0x00,0x00,0x3f,0x01,0x01,0xff,0x21,0x61,0x3f,0x00,0x0f,0x40,0x80,0x7f,0x00,0x00,/*- 文字: 小 -*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0x00,0x00,0x00,0xc0,0x70,0x20,0x00,0xff,0x00,0x10,0x20,0xc0,0x80,0x00,0x00,0x00,0x04,0x02,0x01,0x00,0x00,0x40,0x80,0x7f,0x00,0x00,0x00,0x00,0x01,0x07,0x02,0x00,/*- 文字: 型

5、-*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0x10,0x12,0x92,0x7e,0x12,0x12,0xfe,0x12,0x12,0x10,0xfc,0x00,0x00,0xff,0x00,0x00,0x40,0x42,0x49,0x48,0x48,0x48,0x49,0x7e,0x48,0x48,0x48,0x4a,0x4c,0x4b,0x40,0x00,/*- 文字: 點(diǎn) -*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0x00,0x00,0x00,0xe0,0x20,0x20,0x20,0x3f,0x24,0x24,0x24,0xf

6、4,0x24,0x00,0x00,0x00,0x00,0x40,0x30,0x07,0x12,0x62,0x02,0x0a,0x12,0x62,0x02,0x0f,0x10,0x60,0x00,0x00,/*- 文字: 陣 -*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0xfe,0x02,0x12,0x2a,0xc6,0x88,0xc8,0xb8,0x8f,0xe8,0x88,0x88,0x88,0x88,0x00,0x00,0xff,0x00,0x02,0x04,0x03,0x04,0x04,0x04,0x04,0xff,0x04,0x04,0x04,0x04,0x

7、04,0x00,/*- 文字: 顯 -*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0x00,0x00,0x00,0x3e,0x2a,0xea,0x2a,0x2a,0x2a,0xea,0x2a,0x3e,0x00,0x00,0x00,0x00,0x20,0x21,0x22,0x2c,0x20,0x3f,0x20,0x20,0x20,0x3f,0x28,0x24,0x23,0x20,0x20,0x00,/*- 文字: 示 -*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0x00,0x20,0x20,0x22,0x22,0x22,0x22,0xe2,

8、0x22,0x22,0x22,0x22,0x22,0x20,0x20,0x00,0x10,0x08,0x04,0x03,0x00,0x40,0x80,0x7f,0x00,0x00,0x01,0x02,0x0c,0x18,0x00,0x00,/*- 文字: 系 -*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0x00,0x00,0x02,0x22,0xb2,0xaa,0x66,0x62,0x22,0x11,0x4d,0x81,0x01,0x01,0x00,0x00,0x00,0x40,0x21,0x13,0x09,0x05,0x41,0x81,0x7f,0x01,0x05

9、,0x09,0x13,0x62,0x00,0x00,/*- 文字: 統(tǒng) -*/*- 宋體12; 此字體下對(duì)應(yīng)的點(diǎn)陣為:寬x高=16x16 -*/0x20,0x30,0x2c,0xa3,0x60,0x10,0x84,0xc4,0xa4,0x9d,0x86,0x84,0xa4,0xc4,0x84,0x00,0x20,0x22,0x23,0x12,0x12,0x92,0x40,0x30,0x0f,0x00,0x00,0x3f,0x40,0x41,0x70,0x00,/*空白,用于區(qū)分顯示內(nèi)容的頭和尾*/0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00

10、,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00;uint k=0,j; /移位變量,k:移位個(gè)數(shù)uint a=0; /用于軟件延時(shí) ulong s=(sum+1)*ziti; /s為全部列數(shù)uchar disbuf162; /定義顯示緩沖區(qū)(16行兩列的二維數(shù)組以開辟1個(gè)16*16漢字的空間)bit move_st; /移動(dòng)標(biāo)志/*可變延時(shí)*/void delay(void) uchar i;for(i=0;i<li

11、ght;i+);/*初始化子程序*/void init(void) tmod=0x1; th0=0xfc; tl0=0x18;/*計(jì)數(shù)器中斷程序*/void timer0(void) interrupt 1 /中斷處理 th0=0xfc; tl0=0x18; a+; /*漢字循環(huán)顯示*/void run_move(void)uchar k1,k2;if(a>=move_speed) /move_speed控制移動(dòng)速度 if(k>s-ziti-1)k=0; /整屏移動(dòng)列數(shù) k1=k/ziti; k2=k%ziti; j=ziti*2*k1+k2; /顯示指針 k+; move_st=1; a=0;/*裝載顯示數(shù)據(jù)至緩沖區(qū)*/void load_hanzi(void) uchar i;run_move();if(move_st) for(i=0;i<15;i+) disbufi0=disbufi+10;/移位處理 disbufi1=disbufi+11;/移位處理 disbuf150=hanzij; disbuf151=(hanziziti+j); move_st=0; /*掃描顯示數(shù)據(jù)緩沖區(qū)的內(nèi)容*/void display(void)

溫馨提示

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

評(píng)論

0/150

提交評(píng)論