摘要
为实现不同模式的霓虹灯的闪烁效果,利用单片机作为核心控制器,用单片机的P1口作为输出口连接8个发光二极管,通过编写程序控制单片机引脚电平的高低变化,实现了发光二极管的亮灭.该设计克服了传统全硬件电路功能单一,只能按固定模式闪烁的缺点,满足了人们工作生活的需要.
In order to realize the twinkling effects of various neon lights,the single chip microcomputer is used to be a central controller,and the P1 port of the single chip microcomputer is used to be an output port to connect to 8shining diodes.Then the lead level will be controlled by writing programs,which affects the shining diode whether it will be on or will be off.This design overcomes the disadvantages,such as,the single function of the electrical circuit in traditional hardware,and the twinkling effects which are resulted from being connected to a certain mode.More importantly,it meets the living and working demands of people.
出处
《辽宁师专学报(自然科学版)》
2017年第1期84-86,共3页
Journal of Liaoning Normal College(Natural Science Edition)
关键词
单片机
程序
霓虹灯
the single chip microcomputer
program
neon lights