freescale MCF5485EVB开发板上中断操作示例,利用一个timer产生中断,另外3个timer作为GPIO,使3g个LED每隔1秒钟轮换亮一次。
上传时间: 2016-11-14
上传用户:zaizaibang
As you have learnt that sleep( )/usleep()/nanosleep() are not good to delay a process. Timers can provide more accurate time control in applications. In this lab, you will explore POSIX timers and signal programming, experience the timer drift. The primary focus of this lab will be "time". The experiment will show you several methods to measure time in your applications.
标签: nanosleep process Timers learnt
上传时间: 2013-12-19
上传用户:huyiming139
51单片连tcs230的源程序,绝对原创,可以记忆颜色。 #define uchar unsigned char #include <reg52.h> #include<math.h> sbit S0=P1^7 sbit S1=P1^0 //端口定义 sbit S2=P1^1 sbit S3=P1^2 sbit OE=P1^3 sbit OUT=P3^4 //频率从TO口输入 sbit key0=P1^5 sbit LED=P1^6 sbit a=P3^0 sbit b=P3^1 uchar color //1:blue 2:green 3:red uchar T[4] //color timer uchar TH[4] uchar TL[4] uchar bizhi[4] void time1() interrupt 3 { TH[color]=TH0 TL[color]=TL0 T[color]=(TH[color]*0xff+TL[color]) TR0=0 //关定时器 TR1=0 TH1=0xB1 TL1=0xE0 //归0 TH0=0x00 TL0=0x00 //归0 }
上传时间: 2016-11-26
上传用户:秦莞尔w
Hello User This is nothing, but a simple program which if kept in start of windows will shut down the system by itself within five minutes of starting. It takes the time from the system & starts its timer to shut down after 5 minutes (not considering seconds). U can use shutdown.exe,once started there is only one exit that u know only. EXIT : DOUBLECLICK TIME TO ENABLE EXIT
标签: nothing program windows simple
上传时间: 2016-12-26
上传用户:ynwbosss
Hello User This is nothing, but a simple program which if kept in start of windows will shut down the system by itself within five minutes of starting. It takes the time from the system & starts its timer to shut down after 5 minutes (not considering seconds). U can use shutdown.exe,once started there is only one exit that u know only. EXIT : DOUBLECLICK TIME TO ENABLE EXIT
标签: nothing program windows simple
上传时间: 2014-12-20
上传用户:xinyuzhiqiwuwu
Hello User This is nothing, but a simple program which if kept in start of windows will shut down the system by itself within five minutes of starting. It takes the time from the system & starts its timer to shut down after 5 minutes (not considering seconds). U can use shutdown.exe,once started there is only one exit that u know only. EXIT : DOUBLECLICK TIME TO ENABLE EXIT
标签: nothing program windows simple
上传时间: 2016-12-26
上传用户:xfbs821
Hello User This is nothing, but a simple program which if kept in start of windows will shut down the system by itself within five minutes of starting. It takes the time from the system & starts its timer to shut down after 5 minutes (not considering seconds). U can use shutdown.exe,once started there is only one exit that u know only. EXIT : DOUBLECLICK TIME TO ENABLE EXIT
标签: nothing program windows simple
上传时间: 2016-12-26
上传用户:lx9076
Hello User This is nothing, but a simple program which if kept in start of windows will shut down the system by itself within five minutes of starting. It takes the time from the system & starts its timer to shut down after 5 minutes (not considering seconds). U can use shutdown.exe,once started there is only one exit that u know only. EXIT : DOUBLECLICK TIME TO ENABLE EXIT
标签: nothing program windows simple
上传时间: 2016-12-26
上传用户:yxgi5
Hello User This is nothing, but a simple program which if kept in start of windows will shut down the system by itself within five minutes of starting. It takes the time from the system & starts its timer to shut down after 5 minutes (not considering seconds). U can use shutdown.exe,once started there is only one exit that u know only. EXIT : DOUBLECLICK TIME TO ENABLE EXIT
标签: nothing program windows simple
上传时间: 2014-03-06
上传用户:ruan2570406
本示例程序是STM32的一个综合测试程序,主要演示了GPIO、TIMER、NVIC、UART等功能
上传时间: 2016-12-29
上传用户:tzl1975