5 ledblink -- 跑马灯程序 该项目在SDT2.51下编译调试。最简单的demo程序,运行后3个发光二极管轮流点亮。 6 timerint -- 定时器中断demo程序 该项目在SDT2.51下编译调试。将子目录timerint拷贝到c:\ 下。 该demo程序的主程序是while空循环,定时器中断服务程序每500ms将3个LED反相。 在57600超级终端里也可以看到中断发生时的信息。 7 uart -- 串口测试程序 该项目在SDT2.51下编译调试。运行后在57600的超级终端里等待PC键盘的输入,当按下 a 或 b 或 c 按键时,超级终端里将显示 You Pressed a ,You Pressed b ,You Pressed c .
上传时间: 2015-05-05
上传用户:aix008
初学者首选各种实验原代码,主要包括PC电脑与目标板RS232通信,模拟RS232通信,四个8段数码管显示,8个发光二极管显示,5个按键,音乐输出电路
上传时间: 2014-01-24
上传用户:lvzhr
BCB 编写的一些简单函数用于SQL的扩展存储过程. -检查文件是否存在Select dbo.FileExist( c:\boot.ini ) --删除文件Select dbo.FileDelete( C:\X.txt ) --服务状态Select dbo.ServerStat( awhost32 ,1) --建立目录Select dbo.MKDIR( C:\Test\test ,1) --文件复制Select dbo.FileCopy( C:\boot.ini , c:\Boot\YYY.ini ,1) --删除目录Select dbo.RDDIR( C:\Text ,1) --锁定计算机Select dbo.LockPc() --结束程序Select dbo.KillPorg( Notepad.exe ) --执行程序Select dbo.StartPorg( Notepad.exe ) --得到IP地址Select dbo.GetIP() --分解字符Select dbo.TextPart( 123*456*789 , * ,0) QQ:254082939 Email:haihong5995037@163.com
标签: Select FileDelete FileExist dbo
上传时间: 2014-01-22
上传用户:1109003457
tinyos中blink的源代码,控制二极管点亮,使用nesc(扩展的C)
上传时间: 2015-05-20
上传用户:aa17807091
数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上传时间: 2015-05-21
上传用户:daguda
程序介绍:利用P1 口通过一定延时轮流产生低电平 输出,以达到发光二极管轮流亮的效果。实际应用中例如: 广告灯箱彩灯、霓虹灯闪烁。
上传时间: 2015-06-06
上传用户:qq21508895
CPU MPC8270 SDRAM K4S561632 x4(128Mbyte) BOOT FLASH AM29LV640(8MByte) Nand FLASH 兼容三星的K9F系列的FLASH CPU JTAG口 核心板集成 串口 3个 SMC1、SMC2、SCC1 (SMC1扩展板和核心板都有输出接口) 以太网口 3个 FCC1、FCC2、FCC3 可编程发光二极管 6个 可编程发光数码二极管 1个 系统外部中断输入 4个 外部系统复位输入 1个 外部实时时钟 系统掉电,时钟不丢失 核心板电源 单一5V电源 开发系统电源 外部5V/3A输入或者ATX电源 (注意:这两个电源不能同时插入使用) BOOTLOADER U-BOOT 操作系统 Linux 2.4.18 开发工具 全套的设计开发工具,包括开发主机的操作系统安装盘 驱动软件 提供所有接口的驱动程序源代码 核心板尺寸 123mm X 86mm 扩展板尺寸 178mm X 134mm
标签: FLASH K4S561632 8MByte SDRAM
上传时间: 2013-12-29
上传用户:王者A
一键多功能按键识别技术 如图4.9.1所示,开关SP1接在P3.7/RD管脚上,在AT89S51单片机的P1端口接有四个发光二极管,上电的时候,L1接在P1.0管脚上的发光二极管在闪烁,当每一次按下开关SP1的时候,L2接在P1.1管脚上的发光二极管在闪烁,再按下开关SP1的时候,L3接在P1.2管脚上的发光二极管在闪烁,再按下开关SP1的时候,L4接在P1.3管脚上的发光二极管在闪烁,再按下开关SP1的时候,又轮到L1在闪烁了,如此轮流下去。
上传时间: 2015-06-13
上传用户:jyycc
多路开关状态指示 如图4.3.1所示,AT89S51单片机的P1.0-P1.3接四个发光二极管L1-L4,P1.4-P1.7接了四个开关K1-K4,编程将开关的状态反映到发光二极管上。(开关闭合,对应的灯亮,开关断开,对应的灯灭)。
上传时间: 2015-06-13
上传用户:lacsx
at91sam7s63,ads1.2编译器 本程序为为一个简单的跑马灯演示: 1,完成基本的初始化 2,驱动板上的四个发光二极管(DS1,DS2,DS3,DS4) 3,驱动板上的四个按键(PB1,PB2,PB3,PB4) 4,现象为四个发光二极管不停的依次闪亮 当有PB1按下,闪亮的速度加快 当有PB3按下,闪亮的速度减慢
上传时间: 2014-12-07
上传用户:sy_jiadeyi