|
控制K66核心板上的指示燈以不同的頻率閃爍
單片機(jī)源程序如下:
- #include "include.h"
- int main(void)
- {
- DisableInterrupts;
- PLL_Init(PLL200);
-
- PIT_Init(PIT0, 500);
-
- LED_Init();
- LED_Ctrl(LEDALL, OFF);
- EnableInterrupts;
- while(1)
- {
-
- }
- }
復(fù)制代碼
所有資料51hei提供下載:
PIT定時中斷.7z
(187.86 KB, 下載次數(shù): 7)
2019-10-28 03:46 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
|
|