luminary cm3的目标板是ekk8962,提供了5种实现PWM控制led亮度的方法,从多个角度说明如何使用djyos编写应用程序,分别对应5个keil MDK工程文件,这5个程序的功能完全相同,即控制led渐亮渐暗循环不已。请到http://www.djyos.com/bbs/read.php?tid=33下载源代码,代码中包含5个工程,prj-ekk8962-1~5,每个工程对应一种方法,在共享包中有说明。 prj-ekk8962-1:PWM控制完全用事件,不用中断实现。 prj-ekk8962-2:PWM控制主要用...
by djyos - 都江堰操作系统 - 2009-10-15 17:08:59 阅读(1712) 回复(0)
/* the program works on my ARM, i am so happy! when i insmod led2.ko (led2 is this file), two leds extingushed at once. then i#mknod /dev/leds c 231 0 #./ledapp 0 1 one of them is lighted again. */ #include #include #include #include #include #include //Please configure your kernel first to use the following headers, because the directory "asm" is a short cut to your arch's "asm" directory...
;
; IDE环境: TX2440A、ADS
; 功能描述:led点灯程序
; 只点亮灯,其他初始化都没做
; 硬件连接: led1 -- GPF0
; led2 -- GPF1
; &nbs...
操作步骤:
(1)、引脚功能设置位输出。
(2)、要点亮led,令引脚输出0。
(3)、要熄灭led,令引脚输出1。
1、led驱动代码。
stati...
led驱动 好就没写了,虽然写的比较烂。但是一定要坚持。坚持学习,坚持记录。 这段时间写了两个小小的驱动,很简单。还看了一下书。led的驱动和BUTTON的驱动。 现在先说下led的感觉 首先是设备注册函数: 1.发现原来2.6内核和2.4内核提倡的注册设备方法是不同的。很多资料上面都说尽量使用固定的主设备号,但是在《linux设备驱动程序》书中说尽量使用动态分配的方法,我想这个也是linux发展的方向。 2.在2.4中用来...
led测试 由HELLO驱动模块熟悉了驱动模块的基本编写方法。下面要开始做一个真正有用的驱动—led驱动。象普通单片机一样,先从IO控制开始。IO控制首先就要知道地址和个控制寄存器,先翻DATASHEET了。由于开发板的led是接在PIOA上的。先找地址 再看寄存器 #1 PIO Controller PIO Enable Register Name:PIO_PER Access Type: Write-only ?P0-P31: PIO Enable 0 = No effect. 1 = Enables the PIO to control the corresponding pin (...
---------- Dump Progress Indicator ---------- 0c0 The dump completed successfully 0c1 The dump failed due to an I/O error. 0c2 A user-requested dump has started. You requested a dump using the SYSDUMPSTART command, a dump key sequence, or the Reset button. 0c3 The dump is inhibit 0c4 The dump did not complete. A partial dump was written to the dump device. There is not enough space on ...
文件: led解释.rar 大小: 137KB 下载: 下载 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/9606/showart_169126.html
二极管是一种非线性元件,换言之他的电流和电压不是线性关系:\n\n\n如果我们慢慢提高二极管两端的电压,\n从这张示意图上可以看出,在最开始时,电流的增长非常的微弱。\n而到后来电流开始随着电压提升而提升。\n到较高电压的时候,即便是很小的电压提升,比如零点几伏,电流的增长将是成倍的。\n\n\n在电压低电流很微小的这个阶段,发光二极管基本上是不亮的。\n而在电压较高的阶段,即便微小的电压变化,也会造潮勘康溺流变化极...
RS/6000液晶显示屏上显示代码(led)的含义 本文介绍RS/6000启动过程中机器上的液晶显示屏代码的含义。本文代码不针对具体机型。 ---------- Dump Progress Indicator ---------- 0c0 The dump completed successfully 0c1 The dump failed due to an I/O error. 0c2 A user-requested dump has started. You requested a dump using the SYSDUMPSTART command, a dump key sequence, or the Reset button. 0c3 The dump i...