文件名称:LED_Delay
- 所属分类:
- 单片机(51,AVR,MSP430等)
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2016-05-04
- 文件大小:
- 35kb
- 下载次数:
- 0次
- 提 供 者:
- yush*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
STC12C5A60S2 LED 延时闪烁程序
1、程序说明:
该例程演示了接在单片机P0.0端口上的LED闪烁实验。
在主程序中先让该LED亮500ms,再让该LED灭500ms,
交替反复,从而产生LED闪烁的现象。
2、实验操作
将拨码开关S10的LED端拨到ON端,表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
该程序下载到开发板运行后可观察到发光二极管D4每隔500ms闪烁。-LED STC12C5A60S2 delay flashing program
1, program instructions:
This routine demonstrates the P0.0 port on the microcontroller LED flash test.
In the main program first to let the LED bright 500ms, then let the LED out 500ms,
Alternately and repeatedly, resulting in the phenomenon of LED flashing.
2, experimental operation
The dial switch LED S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results.
After the program is downloaded to the development board can be observed in the light emitting diode D4 flashes every 500ms.
1、程序说明:
该例程演示了接在单片机P0.0端口上的LED闪烁实验。
在主程序中先让该LED亮500ms,再让该LED灭500ms,
交替反复,从而产生LED闪烁的现象。
2、实验操作
将拨码开关S10的LED端拨到ON端,表示该端接通。
同时把该拨码开关的其他端置为断开状态,即不拨到ON端。
否则将影响到实验效果。
该程序下载到开发板运行后可观察到发光二极管D4每隔500ms闪烁。-LED STC12C5A60S2 delay flashing program
1, program instructions:
This routine demonstrates the P0.0 port on the microcontroller LED flash test.
In the main program first to let the LED bright 500ms, then let the LED out 500ms,
Alternately and repeatedly, resulting in the phenomenon of LED flashing.
2, experimental operation
The dial switch LED S10 end of the ON to the side, indicating that the end is connected.
At the same time, the other end of the dial switch is in a disconnected state, that is, the switch is not transferred to the ON terminal.
Otherwise, it will affect the experimental results.
After the program is downloaded to the development board can be observed in the light emitting diode D4 flashes every 500ms.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
1、LED延时闪烁实验\Application\Doc\readme.txt
..................\...........\Header\STC12C5A60S2.H
..................\...........\Source\main.c
..................\...........\.tartup\STARTUP.A51
..................\LED_Delay.plg
..................\LED_Delay.uvopt
..................\LED_Delay.uvproj
..................\LED_Delay_uvopt.bak
..................\LED_Delay_uvproj.bak
..................\.is\LED_Delay.m51
..................\...\main.lst
..................\...\STARTUP.lst
..................\Obj\LED_Delay
..................\...\LED_Delay.hex
..................\...\LED_Delay.lnp
..................\...\LED_Delay.plg
..................\...\main.obj
..................\...\STARTUP.obj
..................\Application\Doc
..................\...........\Header
..................\...........\Source
..................\...........\Startup
..................\Application
..................\Lis
..................\Obj
1、LED延时闪烁实验