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