当前位置:主页 > 科技论文 > 电力论文 >

基于FPGA的多通道LED控制器设计与实现

发布时间:2018-07-13 13:16
【摘要】:目前,嵌入式应用越来越广泛,对数据处理的要求也越来越高,尤其是对大批量数据处理的速度、稳定和可扩展性提出新的要求。传统单片机处理方式已经远远不能满足当前工程应用尤其是城市景观灯或楼宇墙面大型LED显示项目对显示数据的要求。本控制器是基于FPGA实现的,功能是控制多个通道的LED灯带的色彩变化。本设计完成两个部分,一个是上位机软件开发,另一个是硬件逻辑功能设计。软件设计通过在PC机上Microsoft Visual C++6.0开发环境下应用Open CV开发MFC应用程序,程序实现了LED灯的布局布线、动画设计、LED灯变化方式以及按既定格式进行数据输出,还能手动编辑和修改在线动画效果等等。硬件设计则是通过以FPGA为核心板,添加外围硬件电路,根据功能划分分别进行逻辑设计,并使用Verilog HDL语言作为开发语言进行代码仿真。设计思路采用自顶向下的方式,先总体,后局部的设计方法,使设计出的控制器更具有系统性,也有利于资源的合理分配。本设计的开发环境和仿真环境为QuartusⅡ11.0+Modelsim SE 10.0c,采用核心为Altera公司推出的EP4CE6F17C8的开发板。针对独立模块,全部采用三段式状态机写法进行分级代码设计和调试,完成了利用SPI数据协议对SD卡中数据进行读取,完成了对外部SDRAM存储器在100M速率下进行读写操作,实现了DMX512协议发生器以及在QuartusⅡ环境中配置FIFO IP核并调试,最终通过比较输入和输出,验证并实现LED控制器预期功能。
[Abstract]:At present, embedded applications are becoming more and more widespread, and the demand for data processing is becoming more and more high, especially for the speed, stability and extensibility of large batch data processing. The traditional single chip processor can not meet the current engineering applications, especially the urban landscape lamps or the large LED display items on the building wall display. The requirement of data. This controller is based on FPGA. The function is to control the color change of the LED lamp band of multiple channels. The design completes two parts. One is the software development of the upper computer and the other is the hardware logic function design. The software design applies Open CV to develop MFC applications in the Microsoft Visual C ++6.0 development environment on the PC machine. Program, the program realizes the layout and wiring of the LED lamp, the animation design, the LED lamp change mode and the data output according to the established format. It can also edit and modify the online animation effect manually. The hardware design is to add peripheral hardware circuit by using FPGA as the core board, and make the logical design according to the function division, and use Verilog HDL. Language is used as the development language to simulate the code. The design idea adopts the top-down way, first overall, and then the local design method, so that the designed controller is more systematic and is beneficial to the rational allocation of resources. The design development environment and simulation environment are Quartus II 11.0+Modelsim SE 10.0c, and the core is Altera company The development board of EP4CE6F17C8 is introduced. According to the independent module, the three segment state machine is used to design and debug the code. The data of the SD card is read by the SPI data protocol, and the external SDRAM memory is read and written at the 100M rate, and the DMX512 protocol generator and the Quartus II are realized. The FIFO IP core is configured and debugged in the environment. Finally, the expected function of the LED controller is verified and implemented by comparing input and output.
【学位授予单位】:哈尔滨工业大学
【学位级别】:硕士
【学位授予年份】:2014
【分类号】:TM923.34;TP273

【参考文献】

相关期刊论文 前1条

1 徐欣;周舟;李楠;孙兆林;;基于DDR2 SDRAM的高速大容量异步FIFO的设计与实现[J];中国测试;2009年06期



本文编号:2119499

资料下载
论文发表

本文链接:https://www.wllwen.com/kejilunwen/dianlilw/2119499.html


Copyright(c)文论论文网All Rights Reserved | 网站地图 |

版权申明:资料由用户7e70b***提供,本站仅收录摘要或目录,作者需要删除请E-mail邮箱bigeng88@qq.com