摘要
随着人们对物质生活的智能化要求越来越高,单片机作为智能化的核心,将会日益成为我国未来的一个要发展的方向。本文通过在YL-236试验台上利用C语言,模拟设计霓虹灯广告牌的项目,阐述了用十六进制编码LED灯的状态,用定时器实现定时功能,呈现出霓虹灯光按照次序循环闪烁的功能的简单智能控制。同时也让学生们对学习单片机初步的认识,并且产生强烈的兴趣。
Along with people's increasingly higher intelligence require for material life, the microcontroller, as the core of intelligence, will increasingly become one important developing direction for China’s future. In this paper, by utilizing the C language on the YL-236 test bed, it simulates the program of designing the neon light billboards, expounds the state of using the hexadecima code to code the LED lights and uses the timer to realize the timing function, finally presents the simple and intelligent control of neon light’s cycle flashing function in order. At the same time, it also can let the students take preliminary understanding of the learning microcontroller and stimulate students’ strong interest.
作者
刘奕
Liu Yi(Automobile technical school of Anhui Province, Anhui, 231131)
出处
《当代化工研究》
2016年第11期121-122,共2页
Modern Chemical Research
关键词
AT89C51单片机
C语言
二进制
十六进制
一维数组
延时中断
AT89C51 microcontroller
C language
binary system
hexadecimal
one-dimensional array
time-delay interruption