freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于單片機控制的led點陣顯示屏設(shè)計論文(編輯修改稿)

2024-12-16 02:51 本頁面
 

【文章內(nèi)容簡介】 位邊沿觸發(fā)式移位寄存器,串行輸入數(shù)據(jù),然后并行輸出。數(shù)據(jù)通過兩個輸入端( DSA 或 DSB)之一串行輸入;任一輸入端可以用作高電平使能端,控制另一輸入端的數(shù)據(jù)輸入。兩個輸入端或者連接在一起,或者把不用的輸入端接高電平,一定不要懸空。 時鐘 (CP) 每次由低變高時,數(shù)據(jù)右移一位,輸入到 Q0, Q0 是兩個數(shù)據(jù)輸入端( DSA 和 DSB)的邏輯與,它將上升時鐘沿之前保持一個建立時間 的長度。 主復(fù)位 (MR) 輸入端上的一個低電平將使其它所有輸入端都無效,同時非同步地清除寄存器,強制所有的輸出為低電平。 3 系統(tǒng)軟件設(shè)計 顯示屏軟件的主要功能是向顯示屏提供顯示數(shù)據(jù),并產(chǎn)生各種控制信號,使屏幕按設(shè)計的要求顯示。根據(jù)軟件分層次設(shè)計的原理,可把顯示屏的軟件系統(tǒng)分成兩大層;第一層是底層的顯示驅(qū)動程序,第二層是上層的系統(tǒng)應(yīng)用程序。顯示驅(qū)動程序負(fù)責(zé)向點陣傳送特定組合的顯示數(shù)據(jù),并負(fù)責(zé)產(chǎn)生行掃描信號和其它控制信號, 11 配合完成 LED顯示的掃描顯示工作。顯示驅(qū)動程序由顯示子程序?qū)崿F(xiàn);系統(tǒng)環(huán)境設(shè)置由系統(tǒng)初始化程序完成;顯示效果處理等工作,則由主程序通過調(diào) 用子程序來實現(xiàn)。 然后顯示驅(qū)動程序查詢當(dāng)前點亮的行號,從顯示緩存區(qū)內(nèi)讀取下一行的顯示數(shù)據(jù),并通過串口發(fā)送給移位寄存器。為消除在切換行顯示數(shù)據(jù)的時候產(chǎn)生拖尾現(xiàn)象,驅(qū)動程序先要關(guān)閉顯示屏,即消隱,等數(shù)據(jù)發(fā)送完畢后輸出 74HC595 的鎖存信號,將顯示數(shù)據(jù)打入輸出鎖存器并鎖存,然后再輸出新的行號,并打開顯示。 原理及 程序 系統(tǒng)主程序開始以后,首先是對系統(tǒng)環(huán)境初始化,包括設(shè)置串口,端口以及一些參數(shù);然后顯示吃豆豆的動畫效果,先吃完一個豆豆 之后前進吃另外一個豆豆,每幅圖停留約 2秒。設(shè)置系統(tǒng)程序不斷地循環(huán)執(zhí)行上述顯示效果。 系統(tǒng)程序 /*32*16 點陣屏的顯示點陣屏的顯示 */ include 12 include define DATAOUT P2 //指定 P2口做為輸出 sbit DATA=DATAOUT^0。 //列數(shù)據(jù)輸出位 sbit SCLH=DATAOUT^1。 //列掃描時鐘位 sbit SCLT=DATAOUT^2。 //列數(shù)據(jù)鎖存位 sbit AB=DATAOUT^4。 //行數(shù)據(jù)輸出位 sbit SCK=DATAOUT^5。 //行掃描時鐘位 unsigned char idata lhj[64]。//64 字節(jié) RAM 做為 32*16 點陣屏顯示緩存 void display()。//做為點陣掃描函數(shù),將顯示緩存的數(shù)據(jù)輸出到點陣屏 void displayS(unsigned int timer)。//指定時間掃描顯示 code unsigned char frame1_1[32]={//第一幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x0C1,0x83, 0x0C1,0x83,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}。 code unsigned char frame1_2[32]={//第一幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x0F0,0x01,0x08,0x02,0x04, 0x04,0x22,0x02,0x01,0x01,0x01,0x30,0x81, 0x30,0x81,0x01,0x01,0x02,0x01,0x04,0x02, 0x02,0x04,0x01,0x08,0x00,0x0F0,0x00,0x00}。 code unsigned char frame2_1[32]={//第二幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x0C1,0x83, 0x0C1,0x83,0x00,0x00,0x00,0x00,0x00,0x00, 13 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}。 code unsigned char frame2_2[32]={//第二幅畫的點陣數(shù)據(jù) 0x00,0x00,0x0F,0x80,0x10,0x40,0x20,0x20, 0x41,0x10,0x20,0x08,0x10,0x08,0x38,0x08, 0x38,0x08,0x10,0x08,0x20,0x08,0x40,0x10, 0x20,0x20,0x10,0x40,0x0F,0x80,0x00,0x00}。 code unsigned char frame3_1[32]={//第三幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x0C1,0x83, 0x0C1,0x83,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}。 code unsigned char frame3_2[32]={//第三幅畫的點 陣數(shù)據(jù) 0x00,0x00,0x07,0x80,0x08,0x40,0x10,0x20, 0x22,0x10,0x40,0x08,0x80,0x08,0x0F8,0x08, 0x0F8,0x08,0x80,0x08,0x40,0x08,0x20,0x10, 0x10,0x20,0x08,0x40,0x07,0x80,0x00,0x00}。 code unsigned char frame4_1[32]={//第四幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x02, 0x00,0x04,0x00,0x02,0x00,0x01,0x0C1,0x83, 0x0C1,0x83,0x00,0x01,0x00,0x02,0x00,0x04, 0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x00}。 code unsigned char frame4_2[32]={//第四幅畫的點陣數(shù)據(jù) 0x00,0x00,0x0F8,0x00,0x04,0x00,0x02,0x00, 0x21,0x00,0x00,0x80,0x00,0x80,0x80,0x80, 0x80,0x80,0x00,0x80,0x00,0x80,0x01,0x00, 0x02,0x00,0x04,0x00,0xF8,0x00,0x00,0x00}。 14 code unsigned char frame5_1[32]={//第五幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, 0x00,0x02,0x00,0x04,0x00,0x08,0x0C1,0x8F, 0x0C1,0x8F,0x00,0x08,0x00,0x04,0x00,0x02, 0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00}。 code unsigned char frame5_2[32]={//第五幅畫的點陣數(shù)據(jù) 0x00,0x00,0x78,0x00,0x84,0x00,0x02,0x00, 0x21,0x00,0x00,0x80,0x00,0x80,0x80,0x80, 0x80,0x80,0x00,0x80,0x00,0x80,0x01,0x00, 0x02,0x00,0x84,0x20,0x78,0x00,0x00,0x00}。 code unsigned char frame6_1[32]={//第六幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x00,0x00,0x01,0x00,0x02, 0x00,0x04,0x00,0x02,0x00,0x01,0x0C1,0x80, 0x0C1,0x80,0x00,0x01,0x00,0x02,0x00,0x04, 0x00,0x02,0x00,0x01,0x00,0x00,0x00,0x00}。 code unsigned char frame6_2[32]={//第六幅畫的點陣數(shù)據(jù) 0x00,0x00,0xF8,0x00,0x04,0x00,0x02,0x00, 0x21,0x00,0x00,0x80,0x00,0x80,0x80,0x80, 0x80,0x80,0x00,0x80,0x00,0x80,0x01,0x00, 0x02,0x00,0x04,0x00,0xF8,0x00,0x00,0x00}。 code unsigned char frame7_1[32]={//第七幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x7C,0x00,0x82,0x01,0x01, 0x02,0x08,0x01,0x00,0x00,0x80,0x0C1,0x0C0, 0x0C1,0x0C0,0x00,0x80,0x01,0x00,0x02,0x00, 0x01,0x01,0x00,0x82,0x00,0x7C,0x00,0x00}。 15 code unsigned char frame7_2[32]={//第七幅畫的點陣數(shù)據(jù) 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
點擊復(fù)制文檔內(nèi)容
法律信息相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1