搜索资源列表
-
0下载:
程序功能为3位数码管定时更新显示,T0定时中断服务程序用于50ms扫描3位数码管,实现3位数码管的动态显示,显示内容为 :000~999。-The program features three digital tube display is updated regularly, T0 timer interrupt service routine for 50ms scan three digital tube, three digital tube dynamic display, the d
-
-
0下载:
定时器每100us中断一次,在中断服务程序中,对中断次数进行计数,100us计数10000次就是1秒。然后再对秒计数得到分和小时值,并送入显示缓冲区。-Timer interrupt every 100us, in the interrupt service routine, the interrupt number of counts, 100us count is 1 second 10000. Then seconds count the minutes and hours values
-
-
0下载:
INT0的中断服务程序及脉宽测量
通过按键产生/INT0 有效信号,在P3.4 引脚上输出指示信号;并测量按键操作在/INT0引脚上产生的高电平的脉宽。注意:实际操作时,测试的脉冲宽度有可能超过16 位计数器的定时范围。操作时,考虑用蜂鸣器或指示灯作为状态提示。
-INT0 interrupt service routine and pulse width measurement
Produced by key/INT0 valid signal, the output signal
-
-
0下载:
STM32F103RC开发板的素有例程,包括gpio,adc,timer,uart,spi,timer,中断等程序-STM32F103RC development board of the routine, including GPIO, ADC, timer, UART, SPI, timer, interrupt and other procedures
-
-
0下载:
中断程序的编写:在单片机系统的p1口上接有8个LED,LED的阳极接+5V,阴极接P1口的引脚。当P1口某一口线输出为0时,将LED点亮。在外部中断0输出引脚P3.2引脚上接上上拉电阻并接有一个按钮开关K1。用K1按钮来产生外部中断0的输入信号。定时器程序的编写:在AT89S51单片机的P1口上接有8个LED.下面采用定时器T0的方式一的定时中断方式,使P1口外接的8个LED每0.5秒闪亮一次。C51程序:在AT89S51的P1.0脚接有一只发光二极管,二极管的阴极接P1.0脚,阳极通过限流电阻
-