CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - interrupt timer routine
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - interrupt timer routine - List
[
Other Embeded program
]
xhcd
DL : 0
由8031内部定时器1按方式1工作,即作为16位定时器使用,每0.1秒钟T1溢出中断一次。P1口的P1.0~P1.7分别接发光二极管的L1~L8。要求编写程序模拟一循环彩灯。彩灯变化花样可自行设计。例程给出的变化花样为:①L1、L2、…L8依次点亮;②L1、L2、…L8依次熄灭;③L1、L2、…L8全亮、全灭。各时序间隔为0.5秒。让发光二极管按以上规律循环显示下去。-By 8031 according to an internal timer means a work, that is, as a 16-bit timers, each of 0.1 seconds, T1 overflow interrupt time. P1 port P1.0 ~ P1.7 were then light-emitting diodes L1 ~ L8. Requested to prepare program to simulate a cycle of lights. Changes in pattern can design their own lantern. Given changes in routine patterns of: ① L1, L2, ... L8 followed by light ② L1, L2, ... L8 turn out ③ L1, L2, ... L8 full bright Quanmie. The timing interval is 0.5 seconds. Let the law of circulation by the above light-emitting diode display down.
Date
: 2026-01-22
Size
: 1kb
User
:
jx
[
Other Embeded program
]
5
DL : 0
定时器实验: 实验得到的结果为,四个8段数码管显示1234,当按下某键盘后,就会产生定时中断,四个8段数码管只会点亮相对应的那个,在一定延时后,四个8段数码管又恢复显示1234。 在flash调试时,需要修改RO BASE为0x00000000,其他不用修改,重新编译下载就可运行。 注意:由于系统产生中断,程序计数器就会跳到0x18处执行中断服务子程序,所以不能在SDRAM调试。 -Timer experiment: the experimental results for the four 8-segment LED display 1234, when the press of a keyboard, the timer interrupt will be generated, four 8 point digital control will appear that corresponds to a certain delay After four 8 digital tube display resumed 1234. Debug in flash, you need to modify the RO BASE is 0x00000000, the other not modify, recompile download can run. Note: Due to system interrupt, the program counter will jump to 0x18 Department execute the interrupt service routine, it can not debug the SDRAM.
Date
: 2026-01-22
Size
: 44kb
User
:
[
Other Embeded program
]
danpianjishiyanbaogao
DL : 0
实验目的 目的:掌握定时器T0、T1的方式选择和编程方法,了解中断服务程序的设计方法,学会实时程序的调试技巧。 -Aim Objective: To master the timer T0, T1 of the mode selection and programming methods, to understand the design method of the interrupt service routine, and learn skills in real-time debugging.
Date
: 2026-01-22
Size
: 23kb
User
:
meijiao
[
Other Embeded program
]
8253stopwatch
DL : 0
通过PC机内8253定时器设置时间常数,使其每隔10MS产生一次中断,并通过定时中断 ,接管中断服务程序,由汇编语言实现主程序,中断服务程序的编写。-PC-8253 timer to set the time constant, so that every 10MS generate an interrupt and timer interrupt and take over the interrupt service routine, assembly language main program, the interrupt service routine to write.
Date
: 2026-01-22
Size
: 30kb
User
:
粥加蛋
[
Other Embeded program
]
electric-piano
DL : 0
This example describes how to implement a scanning keyboard and then from the pressed key generate a corresponding defined sound frequency. Each time a key is pressed the corresponding frequency value is placed into the timer/counter register. When this counter counts to its maximum value an internal interrupt is generated and the interrupt routine is run. At this point the timer/counter register value is reloaded and the counting continues. In this way, by programming different values into the timer/counter register, different values of frequency can be generated. The internal interrupt routine contains code to change the state of the output port and thus generate the required frequency on a corresponding pin and create the desired note. By adding a suitable amplifier and speaker the system is complete. The important point of the software is to use the timer/counter as a counter to control the output frequency. This frequency has to be calculated.
Date
: 2026-01-22
Size
: 1kb
User
:
gao
[
Other Embeded program
]
chapter7
DL : 0
PIC编程实例第七章,包含4个程序: S071: TMR0定时中断例程 S072: WDT例程 S073: 习题编程题电路图 answer: 习题编程题答案-PIC programming examples in Chapter VII, includes four programs: S071: TMR0 timer interrupt routine S072: WDT routine S073: Exercise circuit diagram programming problem answer: Answer to Exercise Program
Date
: 2026-01-22
Size
: 441kb
User
:
吴亮
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.