摘要
为解决2018年第九届"蓝桥杯"全国软件和信息技术专业人才大赛安徽赛区单片机设计与开发组试题当中对LED灯亮度进行均匀调节的难题,本文以CT107D综合训练平台中各模块原理电路为硬件基础,设计出一套针对性较强的软件控制程序。该套程序的巧妙之处在于只需通过IAP15F2K61S2单片机的内部定时器将脉冲宽度调制(PWM)技术基本原理加以"软化",再配之以变量值处理,便可轻松划分出LED灯的4个均匀亮度等级,并且具有良好的演示效果。
In order to solve the problem that the luminance of LED lamp in the design and development group of the national software and information technology professional talent comp etition of the Ninth"blue bridge"2018 national software and information technology competition is solved.This paper takes the principle circuit of each module in the CT107D comprehen sive training platform as the hardware base,and designs a set of strong software control.Process.The ingenuity of the progr am is that the basic principle of pulse width modulation(PWM)is"softened"by the internal timer of IAP15F2K61S2 single chip microcomputer,and then with variable value processing,it can be easily divided into 4 uniform luminance grades of the LED lamp,and it has good demonstration effect.
作者
苑香平
YUAN Xiang-ping(School of Electrical and Information Engineering,Anhui University of Technology,Ma'anshan 243000,China)
出处
《电子世界》
2018年第17期130-132,共3页
Electronics World
基金
国家级大学生创新创业训练计划项目(SRTP)立项(项目编号:201710360068)
关键词
CT107D
LED灯
可调光
IAP15F2K61S2单片机
PWM控制技术
CT107D
Light-Emitting Diode Light
adjustable light
IAP15F2K61S2 Single Chip Micro-Computer
Pulse Width Modulati on control technology