摘要本文主要讲述如何设计基于MSP430单片机系统的高效率LED驱动电路。该设计采用了TI公司的TPS61040芯片搭建DC/DC开关电源BOOT电路,作为LED的驱动电路。通过低功耗MSP430G2553响应键盘中断实现对LED电流的步进调节和控制。另外,系统对流经LED的电流进行数据采样,并使用LCD12864液晶屏进行显示,以方便实验中观察LED实际电流与设定电流值之间的误差。系统通过响应按键中断来对LED的工作模式进行选择以及进行步进电流的操作。当LED处于正常工作模式时,电流可调节并且LCD12864显示采样电流的值;当LED处于省电模式时,电流不可调节并且关闭LCD显示功能。26323
关键词 LED驱动 MSP430 高效 低功耗 毕业论文设计说明书外文摘要
Title Design of high efficiency LED driver based on MSP430
Abstract
This paper mainly studies the design of the LED driving circuit based on MSP430. The design uses TPS61040 chip of TI company to build DC/DC BOOT switching power supply circuit, the driving circuit of LED; The low power MSP430G2553 and DAC chip DAC优尔2 and keyboard for LED current step regulation and control. Besides, by sampling the current through the LED by MCU and displaying it on the LCD screen, we can observe the error between the actual current through LED and the current designed conveniently in the Experiment. convenient experiment error between actual LED current and the design of current. Using the keyboard to select the working mode of LED. When the LED is in the normal mode, the current can be controled and displayed on LCD; when the LED is in a power saving mode, the current can not be adjusted and turn off the LCD display function.
Keywords LED drive MSP430 High efficiency Low power
目 次
1 绪论 1
1.1 LED的 基本电气特性 1
1.2 LED电源驱动器国内外研究现状 2
1.2.1 国外研究现状 3
1.2.1 国内研究现状 3
1.3 LED驱动电路设计要点 4
1.4 MSP430 Lauchpad优点 5
2 系统总体方案设计 6
2.1 低功耗设计分析 6
2.2 控制器选择 6
2.3 LED电源驱动设计 7
2.4 理论计算 9
3 硬件电路设计 10
3.1 系统框图 10
3.2 LED驱动电路 10
3.3 LCD显示电路 11
3.3 键盘电路 12
4 软件设计 13
4.1 主程序设计要点 13
4.2 键盘中断设置 14
4.3 LCD12864显示程序 14
4.3.1 LCD12864初始化程序 15
4.3.2 LCD12864数据传输函数 16
4.4 PWM占空比步进程序 17
4.5 A/D采集显示程序 17
4.6 省电模式中断程序 19
5 测试过程 20
5.1 工程建立及运行 20
5.2 PWM调光程序 24
5.3 ADC10采集显示电路 26
结论 28
致谢 29
参考文献 30
附录 A 硬件电路图 31
附录 B LED驱动电路程序 32
附录 C LED驱动电路程序 33