標(biāo)題: cortex-M4 K66實(shí)現(xiàn)PPIT定時(shí)中斷源程序 [打印本頁(yè)]

作者: Chavez    時(shí)間: 2019-10-27 13:01
標(biāo)題: cortex-M4 K66實(shí)現(xiàn)PPIT定時(shí)中斷源程序
控制K66核心板上的指示燈以不同的頻率閃爍

單片機(jī)源程序如下:
  1. #include "include.h"

  2. int main(void)
  3. {
  4.    DisableInterrupts;      
  5.    PLL_Init(PLL200);  
  6.        
  7.    PIT_Init(PIT0, 500);   
  8.        
  9.    LED_Init();               
  10.    LED_Ctrl(LEDALL, OFF);         
  11.    EnableInterrupts;  
  12.    while(1)
  13.    {   
  14.                  
  15.    }
  16. }
復(fù)制代碼

所有資料51hei提供下載:
PIT定時(shí)中斷.7z (187.86 KB, 下載次數(shù): 7)








歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1