文件名称:timer-and-interrupt
-
所属分类:
- 标签属性:
- 上传时间:2013-07-24
-
文件大小:869byte
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
外部中断和定时器一样,是单片机最基本也是最重要的两个功能.
我们把它们放在了一起,让大家熟悉单片机的多个内部器件的控制。
因为P3.2接的J8的1端,所有按键“S19”就是外部中断。
数码管的最高位一直显示0--9。当“S19”按下后,就会执行一次流水灯的代码。
因为外部中断0的优先级比定时器0的优先级高。
在执行流水灯的后,数码上显示的值不会有所变化,让后继续显示。-External interrupts and timers, is the most basic and most important microcontroller two functions we put them together, so that we are familiar with the microcontroller to control multiple internal devices. Because P3.2 connected to J8 of a side, all the buttons " S19" is an external interrupt. The highest bit digital tube has been show 0- 9. When the " S19" is pressed, it will perform a light water code. Because the external interrupt 0 priority than the priority of the Timer 0 high. In the implementation of light water, the digital display will not change the value, so that continues to display after.
我们把它们放在了一起,让大家熟悉单片机的多个内部器件的控制。
因为P3.2接的J8的1端,所有按键“S19”就是外部中断。
数码管的最高位一直显示0--9。当“S19”按下后,就会执行一次流水灯的代码。
因为外部中断0的优先级比定时器0的优先级高。
在执行流水灯的后,数码上显示的值不会有所变化,让后继续显示。-External interrupts and timers, is the most basic and most important microcontroller two functions we put them together, so that we are familiar with the microcontroller to control multiple internal devices. Because P3.2 connected to J8 of a side, all the buttons " S19" is an external interrupt. The highest bit digital tube has been show 0- 9. When the " S19" is pressed, it will perform a light water code. Because the external interrupt 0 priority than the priority of the Timer 0 high. In the implementation of light water, the digital display will not change the value, so that continues to display after.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
timer and interrupt.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.