文件名称:TIMER
-
所属分类:
- 标签属性:
- 上传时间:2013-08-02
-
文件大小:136.85kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
6. 定时器程序设计与电路仿真
LPC2138微控制器具有两个32位定时器,分别具有4路捕获收入,4路匹配比较输出,定时器是增量计数的,但溢出时并不会使中断标志置位,而只能通过比较匹配或捕获输入产生中断标志。
定义LED的输出端口,设置所有的引脚连接,使用IO0DIR寄存器定义LED控制口的输出,初始化定时器0,设置定时器0的分频、比较值。等待定时时间到,清除中断标志,通过IO0SET、IO0CLR寄存器控制LED的亮灭。
-6 Timer program design and circuit simulation LPC2138 microcontroller has two 32-bit timers, each with 4 capture revenue, four matched comparison output, the timer count is incremental, but does not cause overflow interrupt flag is set, but only by compare match or input capture interrupt flag. Definition LED output ports, set all the pin connections, use IO0DIR Register Definition LED control output port, initialize the timer 0, set the timer 0 prescaler compare values. Wait regular time to clear the interrupt flag, through IO0SET, IO0CLR registers control the LED light off.
LPC2138微控制器具有两个32位定时器,分别具有4路捕获收入,4路匹配比较输出,定时器是增量计数的,但溢出时并不会使中断标志置位,而只能通过比较匹配或捕获输入产生中断标志。
定义LED的输出端口,设置所有的引脚连接,使用IO0DIR寄存器定义LED控制口的输出,初始化定时器0,设置定时器0的分频、比较值。等待定时时间到,清除中断标志,通过IO0SET、IO0CLR寄存器控制LED的亮灭。
-6 Timer program design and circuit simulation LPC2138 microcontroller has two 32-bit timers, each with 4 capture revenue, four matched comparison output, the timer count is incremental, but does not cause overflow interrupt flag is set, but only by compare match or input capture interrupt flag. Definition LED output ports, set all the pin connections, use IO0DIR Register Definition LED control output port, initialize the timer 0, set the timer 0 prescaler compare values. Wait regular time to clear the interrupt flag, through IO0SET, IO0CLR registers control the LED light off.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TIMER/CONFIG.H
TIMER/HEAP.S
TIMER/IRQ.S
TIMER/Last Loaded TIMELED.DBK
TIMER/Last Loaded TIMER.DBK
TIMER/LPC2138.H
TIMER/main.C
TIMER/main.crf
TIMER/main.d
TIMER/main.i
TIMER/main.o
TIMER/main.txt
TIMER/STACK.S
TIMER/Startup.lst
TIMER/Startup.o
TIMER/Startup.s
TIMER/TARGET.C
TIMER/TARGET.H
TIMER/timeled.crf
TIMER/timeled.d
TIMER/timeled.o
TIMER/TIMELED.PWI
TIMER/TIMER.axf
TIMER/TIMER.DSN
TIMER/TIMER.hex
TIMER/TIMER.htm
TIMER/TIMER.lnp
TIMER/TIMER.map
TIMER/TIMER.Opt
TIMER/TIMER.plg
TIMER/TIMER.PWI
TIMER/TIMER.sct
TIMER/TIMER.tra
TIMER/TIMER.Uv2
TIMER/timerout.PWI
TIMER/TIMER_Opt.Bak
TIMER/TIMER_Target 1.dep
TIMER/TIMER_Uv2.Bak
TIMER
TIMER/HEAP.S
TIMER/IRQ.S
TIMER/Last Loaded TIMELED.DBK
TIMER/Last Loaded TIMER.DBK
TIMER/LPC2138.H
TIMER/main.C
TIMER/main.crf
TIMER/main.d
TIMER/main.i
TIMER/main.o
TIMER/main.txt
TIMER/STACK.S
TIMER/Startup.lst
TIMER/Startup.o
TIMER/Startup.s
TIMER/TARGET.C
TIMER/TARGET.H
TIMER/timeled.crf
TIMER/timeled.d
TIMER/timeled.o
TIMER/TIMELED.PWI
TIMER/TIMER.axf
TIMER/TIMER.DSN
TIMER/TIMER.hex
TIMER/TIMER.htm
TIMER/TIMER.lnp
TIMER/TIMER.map
TIMER/TIMER.Opt
TIMER/TIMER.plg
TIMER/TIMER.PWI
TIMER/TIMER.sct
TIMER/TIMER.tra
TIMER/TIMER.Uv2
TIMER/timerout.PWI
TIMER/TIMER_Opt.Bak
TIMER/TIMER_Target 1.dep
TIMER/TIMER_Uv2.Bak
TIMER
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.