【正文】
principle of human vision, will need to display characters or graphics into 64 (, generally with a frequency of swinging for to ten Hertz, therefore Hertz, LED by MCU control array in a low frequency scan characters or graphic each column, swinging rod can show that for all the characters or graphic display, swinging through port level changes, once the call display subroutines, characters, by external interruption switching system design for program design of hardware circuit to high requirement. The system by the central control module, the LED display module, power supply module. Keywords: LED。 2 設(shè)計方案 簡述 模塊方案的論證與比較 本題難點在于數(shù)據(jù)的時間間隔以及畫面或者文字的完整顯示。 缺點是:單片機使用的晶振頻率較大,軟件不易實現(xiàn)對計數(shù)的控制。 外部中斷信號產(chǎn)生方式 通過外部中斷可以控制數(shù)據(jù)開始傳輸?shù)臅r刻。 方案二:使用遮光器。如果使用 光遮光器,其觸發(fā)單片機的時刻處于正中央,不能解決圖片因為返回與原來圖片重疊的現(xiàn)象。它們的順序可以總結(jié)為:行不斷的送數(shù)據(jù),沒送完設(shè)置的信息后,列 進(jìn)行讀取,然后行再次送數(shù)據(jù) 一次循環(huán)下去,一幅完整的圖案就顯示在顯示屏上了 [2]。數(shù)據(jù)傳輸時使用行送數(shù)據(jù),列掃描。 徐州師范 大學(xué) 物理與電子工程學(xué)院課程 設(shè)計 報告 4 圖 33 單片機最小系統(tǒng) 軟件設(shè)計思路 在搖動 LED 棒的時候單片機必須單程傳送數(shù)據(jù)否則顯示的圖形會產(chǎn)生重影,影響視覺效果。 本次 使用的是直徑 5mm的紅色高亮 LED,感覺太大了些,遠(yuǎn)看效果很好但近看時字不夠連貫。 游 老師在我 程序編寫調(diào)試過程中 ,給我提供了極大的幫助和指導(dǎo)。 //顯示漢字指針 uchar pic=0,num=0。 unsigned char code hanzi2[] = { //學(xué) 0x40,0x04,0x30,0x04,0x11,0x04,0x96,0x04, 0x90,0x04,0x90,0x44,0x91,0x84,0x96,0x7E, 0x90,0x06,0x90,0x05,0x98,0x04,0x14,0x04, 0x13,0x04,0x50,0x06,0x30,0x04,0x00,0x00, //業(yè) 0x40,0x04,0x40,0x04,0x40,0x04,0x40,0x04, 0x44,0x44,0x44,0x24,0x48,0x24,0x48,0x14, 0x50,0x14,0x50,0x14,0x60,0x14,0x40,0x04, 0x40,0x04,0x44,0x04,0xFE,0xFF,0x00,0x00, //有 0x04,0x04,0x04,0x02,0x04,0x01,0x84,0x00, 0xE4,0xFF,0x3C,0x09,0x27,0x09,0x24,0x09, 0x24,0x09,0x24,0x49,0x24,0x89,0xF4,0x7F, 0x24,0x00,0x06,0x00,0x04,0x00,0x00,0x00, //成 0x00,0x40,0x00,0x20,0xF8,0x1F,0x88,0x00, 0x88,0x08,0x88,0x10,0x88,0x0F,0x08,0x40, 0x7F,0x20,0x88,0x13,0x0A,0x1C,0x0C,0x24, 0x08,0x43,0xC8,0x80,0x00,0xF0,0x00,0x00, //天 0x40,0x80,0x42,0x80,0x42,0x40,0x42,0x20, 0x42,0x10,0x42,0x0C,0x42,0x03,0xFE,0x00, 0x42,0x03,0x42,0x0C,0x42,0x10,0x42,0x20, 0x43,0x40,0x62,0xC0,0x40,0x40,0x00,0x00, //天 0x40,0x80,0x42,0x80,0x42,0x40,0x42,0x20, 0x42,0x10,0x42,0x0C,0x42,0x03,0xFE,0x00, 0x42,0x03,0x42,0x0C,0x42,0x10,0x42,0x20, 0x43,0x40,0x62,0xC0,0x40,0x40,0x00,0x00, //開 徐州師范 大學(xué) 物理與電子工程學(xué)院課程 設(shè)計 報告 8 0x80,0x00,0x82,0x80,0x82,0x40,0x82,0x30, 0xFE,0x0F,0x82,0x00,0x82,0x00,0x82,0x00, 0x82,0x00,0x82,0x00,0xFE,0xFF,0x82,0x00, 0x83,0x00,0xC2,0x00,0x80,0x00,0x00,0x00, //心 0x00,0x04,0x00,0x02,0xC0,0x01,0x00,0x00, 0xF0,0x3F,0x00,0x40,0x01,0x40,0x02,0x40, 0x1C,0x40,0x08,0x40,0x00,0x40,0x00,0x70, 0x40,0x00,0x80,0x00,0x00,0x07,0x00,0x00, //一 0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00, 0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00, 0x80,0x00,0x80,0x00,0x80,0x00,0x80,0x00, 0x80,0x00,0xC0,0x00,0x80,0x00,0x00,0x00, //帆 0x00,0x00,0xF8,0x0F,0x08,0x00,0xFF,0xFF, 0x08,0x04,0xFC,0x8F,0x08,0x40,0x00,0x30, 0xFE,0x0F,0x22,0x00,0