搜索资源列表
timer_interrupt
- freescale MCF5485EVB开发板上中断操作示例,利用一个timer产生中断,另外3个timer作为GPIO,使3g个LED每隔1秒钟轮换亮一次。-freescale MCF5485EVB interrupt the operational example of the development board, using a timer generate an interrupt, another three timer as a GPIO, so 3g a LED light at
dingshiqi
- 利用单片机内置的定时器实现定时时间到后产生中断功能-The use of single-chip built-in timer to achieve timing
52scheduling
- 51一个简单的多任务调度功能程序 // 利用定时器2产生10mS的定时中断-51 A simple multi-task scheduling program// use Timer 2 interrupt generated timing 10mS
main2
- 1) 以单片机为核心部件组成一个音乐播放器。 2) 利用单片机的定时器产生乐谱的各种频率方波,信号经过放大后由喇叭发出声音。 3) 自行定义按键盘,每按一键,可选择一首歌曲进行演奏,某段音乐令单片机连续播放,演奏可通过按键来中断。 4) 在LCD上显示演奏歌曲的名称。 -1) the composition of the core components of SCM as a music player. 2) the use of MCU timer generated
time1
- AVR单片机定时器2的异步操作功能用作实时时钟的效果。同时讲解了BASCOM-AVR中关于时钟硬件配置方面的语句。在BASCOM的概念里主要分为SOFT和USER两大类时钟产生的方法。利用芯片定时器的异步功能称为软时钟,利用专用时钟芯片则要用户自己编写相应的处理程序,所以称USER。但不管采用哪种方式,相关的中断服务程序或是函数都要支持DATE$和TIME$以及_sec , _min , _hour, _day , _month , _year等系统内部变量。程序的其他部分可以直接存取这些变量,
clock
- 做电子时钟的思路是直接用单片机的定时计数器,原理是利用单片机芯片的定时器来产生固定时间,模拟时钟的秒,分,时,在调节电子时钟时用了外部中断,当外部中断作用时,由主程序转移到中断程序,此时我们设置了三个按钮分别控制启动调节调节分钟和小时。在设置闹钟电路里,我们设置了参数,当设置的参数和闹钟走的数值相同时,小喇叭会发出警报声音。-The idea is to make electronic clocks microcontroller timing counter directly, the pri
shumaguanjingtaixianshijidingshiqihezhongduanyingy
- 利用定时/计数器T1的方式1,产生10ms的定时,并使P1.0引脚上输出周期为20ms的方波,采用中断方式,设系统时钟频率为12 MHz。 -Using Timer/Counter 1 T1 way to produce timing 10ms, and to P1.0 pin outputs a square wave period of 20ms, using interrupt mode, set the system clock frequency is 12 MHz.
C51-INT0
- C51利用定时器中断0产生方波,通过调节定时周期,可以改变方波频率-Generated by the timer interrupt 0 C51 square wave, by adjusting the time cycle, square wave frequency can be changed
clock
- 本程序利用51单片机的定时器中断产生时间信号,同时具有通过按键调节时间的功能,还可设置闹钟-This procedure using 51 single-chip timer interrupt time signal, but also has the functions via buttons adjust the time, but also set the alarm
WatchDog
- 利用看门狗定时器产生中断,控制LED的闪烁 -Watchdog timer generates an interrupt to control the LED flashes
dianzishizhong
- 原理为:在单片机内部存储器设三个字节分别存放时钟的时、分、秒信息。利用定时器与软件结合实现1秒定时中断,每产生一次中断,存储器内相应的秒值加1;若秒值达到60,则将其清零,并将相应的分字节值加1;若分值达到60,则清零分字节,并将时字节值加1;若时值达到24,则将十字节清零。-The principle is: the single-chip internal memory set of three bytes of storage clock, minute and second inform
example2_ADC
- 本例展示了如何利用高级控制定时器(TIM1)来触发模数转换器(ADC)和利用自动注入转换功能来触发注入转换。 在每一个TIM1的上升沿,ADC对通道14(ADC Channel14)上的输入做一次规则转换,然后,DMA会将寄存器ADC_DR1中数据传送到内存中相应的表格。 使能自动注入转换功能,ADC能够在通道14的规则转换之后自动对通道11(ADC Channel11)上的输入做一次注入转换。随后产生一个ADC中断,并置标志位JEOC。在中断中将注入转换结果存入ADC_In
Microcontroller-basedquasi-wide-rangetreblemusicpr
- 采用适当的误差补偿,利用单片机定时中断的方法能在宽音域范围产生准确稳定的音频信号。本文以MCS-51单片机为例介绍单片机的音乐程序的编写,给出的程序,只须修改乐曲内容就可得到读者自己的程序。-The use of appropriate error compensation, the use of single chip timer interrupt method can produce a wide range of accurate and stable range of audio si
touch-delay-switch
- 智能触摸延时开关源程序 用STC89C52单片机P0口的高阻态输入功能,扫描接口电平。手指将VCC与I\O接口半连接,产生高电平信号。用单片机高低电平控制继电器以达到间接控制节能灯。用单片机的定时器中断定时一段时间。利用人眼视觉暂留现象显示楼层数-Smart touch delay switch source with STC89C52 microcontroller P0 port high-impedance input function, scan interface level. F
yuyu
- 是关于产生的不规则PWM方波,利用外部中断和定时器来实现的,是很好用的。-On the irregular PWM square wave, the use of external interrupt and timer to achieve, is a very good use
Test
- 利用状态机实现51单片机短按长按连发,利用定时器中断产生的软件标志计数,定时器中断可以完成其它任务,-Using the state machine to achieve the the 51 SCM Short Press Long Press bursts software timer interrupt flag count, the timer interrupt other tasks can be completed,
1602time
- 利用msp430单片机中的定时器A定时产生中断,并利用中断进行时间累加,利用液晶屏(1602)显示时间。-Use msp430 microcontroller timer A timer interrupt is generated, and use interrupt time accumulation, the use of the LCD screen (1602) show the time.
Light-water
- 利用msp430单片机的定时器timeA定时产生中断,在中断中按顺序依次点亮led灯,结束后,再依次熄灭led灯。-Use msp430 microcontroller timer timeA timer generates an interrupt, the interrupt led lights lit in sequence, after the end, and then turn off led lights.
51timer-and-counter
- 1.定时器的基本驱动示例,定时器工作于方式1,下载程序后,隔三秒钟,第一个发光二极管被点亮;2.本程序提供一些常用定时器计时的具体参数。用的是定时器0工作于方式1。且只针对11.0592MHz的晶振。3.本程序为计数器的基本驱动示例,计数器工作于方式1。对按键S2按下的次数进行计数,当计数记到3时,第一个发光二极管被点亮。4“滴滴”声的产生5. 59秒计时器(利用定时器延时,查询法)6. 59秒计时器(利用定时器延时,中断法)7 59秒计时器(利用软件延时)-1 Timer basic driv
Timer-interrupt-experiment
- 本程序利用定时器的中断功能,没400ms产生一个中断,实现LED闪烁功能。-This procedure using the timer interrupt function, did not produce a 400ms interrupt, to achieve LED flashing function.