摘 要:介紹一種基于單片機的LED顯示屏控制電路,該電路可實現一行任意多個文字圖形符號的水平平滑移動顯示,可廣泛應用于工礦企業、學校、商場、店鋪、公共場所等進行文字廣告宣傳,信息發布等。詳細介紹了控制電路的設計方法及工作原理,并給出了電路仿真運行結果。該電路可級聯擴展實現由任意多個16×16點陣LED模塊組成的顯示屏,經實際應用表明,穩定可靠,效果良好。
關鍵詞:LED顯示屏; 單片機; 控制電路設計; 串行輸出
中圖分類號:TP29文獻標識碼:A
文章編號:1004-373X(2010)15-0200-03
Design of LED Display Screen Control Circuit Based on MCU
LI Xiu-zhong
(Foshan Polytechnic College, Foshan 528237, China)
Abstract: A kind of LED display screen control circuit based on MCU is introduced. The smooth movement display of a line of several characters, figures and symbolls can be realized with the circuit, which can be widely used in enterprise, school, market, public place for text advertisment and information dissemination. The design method and working principle of the control circuit are elaborated. The simulation results of the circuit is presented. This circuit can be expanded to the display screen composed of any number of 16 × 16 dot matrix LED display modules. The practical application shows the circuit is stable and reliable, and the result is good.
Keywords: LED display screen; MCU; design of control circuit; serial output
0 引 言
LED顯示屏廣泛應用于工礦企業、學校、商場、店鋪、公共場所等進行圖文顯示,廣告宣傳,信息發布。本文設計一種由4個16×16點陣LED模塊組成的顯示屏,由單片機作控制器,平滑移動顯示任意多個文字或圖形符號,本電路可級聯擴展實現由任意多個16×16點陣LED模塊組成的顯示屏[1]。
1 電路設計
控制電路由AT89C51單片機作控制器,顯示屏由4個16×16點陣LED模塊組成,每個16×16點陣LED模塊由4個8×8點陣LED模塊組成,用戶可根據需要擴展增加任意多個16×16點陣LED模塊。8×8 點陣LED模塊結構如圖1所示,共8行8列,每個發光二極管放置在行線和列線的交叉點上,共64個發光二極管。當某一列為高電平,某一行為低電平時,則對應的發光二極管點亮。
單片機P3.0引腳接串入并出移位寄存器74LS164(U10)的串行數據輸入端,8個74LS164(U10~U17)級聯,P3.1引腳接8個74LS164的時鐘脈沖輸入端;8個74LS164分別接8個鎖存器74LS373(U18~U25),8個鎖存器的數據輸出端接4個16×16點陣LED模塊的行線,每個16×16點陣LED模塊的行線是獨立控制的。P1.0接8個……