文件名称:Desktop
介绍说明--下载内容来自于网络,使用问题请自行百度
功能:读取按键,控制LED闪烁。
首先对引脚选择寄存器PINSEL赋值为0,设置引脚连接GPIO。,然后对按键进行扫描,等到有键按下时,开始LED闪烁的程序。为了使LED有各种各样的闪烁结果,对其设计了一个表LED_TBL[],并不断调用,对P0[7:0]这8个设置为输出的I/O口进行置一或清零,得到花样流水灯的效果。当接P0.14的按键按下时,LED闪烁状态会回到最初全灭至亮状态,然后继续按照其他花式闪烁。
-Function: Reads keys, control LED flashes. First register PINSEL pin assignment to 0, set the pin connections GPIO. And then scan button, wait until a key is pressed, the program began flashing LED. In order to make a wide variety of LED flashing result, its design a table LED_TBL [], and continue to call for P0 [7: 0] This 8 is set to output an I/O port for a set or cleared get water lights pattern effect. When the button is pressed pick P0.14, LED flashing light will return to the original state all off, and then continue to follow the other fancy flashing.
首先对引脚选择寄存器PINSEL赋值为0,设置引脚连接GPIO。,然后对按键进行扫描,等到有键按下时,开始LED闪烁的程序。为了使LED有各种各样的闪烁结果,对其设计了一个表LED_TBL[],并不断调用,对P0[7:0]这8个设置为输出的I/O口进行置一或清零,得到花样流水灯的效果。当接P0.14的按键按下时,LED闪烁状态会回到最初全灭至亮状态,然后继续按照其他花式闪烁。
-Function: Reads keys, control LED flashes. First register PINSEL pin assignment to 0, set the pin connections GPIO. And then scan button, wait until a key is pressed, the program began flashing LED. In order to make a wide variety of LED flashing result, its design a table LED_TBL [], and continue to call for P0 [7: 0] This 8 is set to output an I/O port for a set or cleared get water lights pattern effect. When the button is pressed pick P0.14, LED flashing light will return to the original state all off, and then continue to follow the other fancy flashing.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
keil源程序/config.h
keil源程序/fanpeng.axf
keil源程序/fanpeng.c
keil源程序/fanpeng.crf
keil源程序/fanpeng.d
keil源程序/fanpeng.hex
keil源程序/fanpeng.htm
keil源程序/fanpeng.lnp
keil源程序/fanpeng.map
keil源程序/fanpeng.o
keil源程序/fanpeng.plg
keil源程序/fanpeng.sct
keil源程序/fanpeng.tra
keil源程序/fanpeng.uvopt
keil源程序/fanpeng.uvproj
keil源程序/fanpeng_Target 1.dep
keil源程序/fanpeng_uvopt.bak
keil源程序/fanpeng_uvproj.bak
keil源程序/LPC2106.h
keil源程序/Startup.lst
keil源程序/Startup.o
keil源程序/Startup.s
keil源程序/target.h
花式流水灯.DSN
keil源程序
keil源程序/fanpeng.axf
keil源程序/fanpeng.c
keil源程序/fanpeng.crf
keil源程序/fanpeng.d
keil源程序/fanpeng.hex
keil源程序/fanpeng.htm
keil源程序/fanpeng.lnp
keil源程序/fanpeng.map
keil源程序/fanpeng.o
keil源程序/fanpeng.plg
keil源程序/fanpeng.sct
keil源程序/fanpeng.tra
keil源程序/fanpeng.uvopt
keil源程序/fanpeng.uvproj
keil源程序/fanpeng_Target 1.dep
keil源程序/fanpeng_uvopt.bak
keil源程序/fanpeng_uvproj.bak
keil源程序/LPC2106.h
keil源程序/Startup.lst
keil源程序/Startup.o
keil源程序/Startup.s
keil源程序/target.h
花式流水灯.DSN
keil源程序
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.