APP下载

基于LabVIEW与单片机的多功能LED点阵显示屏设计

2016-05-14孙立辉王海

现代电子技术 2016年6期

孙立辉 王海

摘 要: 设计的多功能LED点阵显示屏由上位机和下位机两部分组成。上位机利用LabVIEW从计算机的汉字库中提取汉字字模并转化为十六进制字模数据,并在LabVIEW中进行图像扫描得到相应汉字的字模,经串口传给下位机以驱动LED点阵显示屏显示相应的汉字;下位机的硬件部分由时钟电路、LED点阵屏显示电路、温度采集电路以及主控制器等部分组成,能够实现汉字、温度和时间的显示。该系统具有修改显示内容方便,显示稳定,亮度清晰等特点,因此具有很高的应用价值。

关键词: LED点阵显示屏; LabVIEW; MAX7219; 汉字

中图分类号: TN98?34 文献标识码: A 文章编号: 1004?373X(2016)06?0140?03

Design of multi?function LED dot?matrix display screen based on LabVIEW and SCM

SUN Lihui, WANG Hai

(College of Information and Control Engineering, Jilin Institute of Chemical Technology, Jilin 132022, China)

Abstract: With the rapid development of electronic technology, the dot?matrix display device is widely used in various fields. The designed multi?function LED dot?matrix display screen is composed of the upper computer and lower computer. The Chinese character matrixes are extracted by the upper computer from the Chinese character matrix library in computer by means of LabVIEW, and converted into hex matrix data. The corresponding Chinese character matrixes are obtained by image scanning in LabVIEW, and transmitted to the lower computer through the serial port to drive LED dot?matrix display screen for displaying the corresponding Chinese characters. The hardwares of the lower computer are composed of clock circuit, LED dot?matrix screen display circuit, temperature acquisition circuit and master controller, which can realize the display of Chinese characters, temperature and time. The system has a high application value due to the advantages of convenience display content modification, stable display, clear luminance, etc.

Keywords: LED dot?matrix display screen; LabVIEW; MAX7219; Chinese character

近年来,点阵显示器件的研制、生产得到了迅速发展,形成了光电子行业新兴的产业。LED显示屏以其外形美观大方、显示信息量大、寿命长、能耗小、稳定性高、操作使用灵活方便著称,应用在广告宣传、公交、车站、体育、军事等许多领域。目前市场上控制显示屏的核心元件以FPGA和单片机居多。以FPGA为核心的显示屏虽然具有数据处理量大,控制灵活等特点,但是FPGA的亚稳态以及竞争冒险对输出的影响也是致命的[1?2]。以单片机为控制核心虽然不会出现竞争冒险现象,但是大多数设计所采用的显示驱动电路却占用较多的I/O口[3?6]。本文所设计的LED点阵显示屏采用单片机为控制核心,通过MAX7219集成化串行输入/输出共阴显示驱动器驱动显示屏,显示信息直接利用LabVIEW调用汉字点阵文件进行显示。

1 系统总体方案

本设计方案采用上位机通过串行通信控制下位机以显示相应的汉字信息,而时间及温度等信息则通过下位机来实现。……

登录APP查看全文