飛思卡爾智能車的舵機測試程序 #include <hidef.h> /* common defines and macros */#include <MC9S12XS128.h> /* derivative information */#pragma LINK_INFO DERIVATIVE "mc9s12xs128" void SetBusCLK_16M(void) { CLKSEL=0X00; PLLCTL_PLLON=1; //鎖相環電路允許位 SYNR=0x00 | 0x01; //SYNR=1 REFDV=0x80 | 0x01; POSTDIV=0x00; _asm(nop); _asm(nop); while(!(CRGFLG_LOCK==1)); CLKSEL_PLLSEL =1; } void PWM_01(void) { //舵機初始化 PWMCTL_CON01=1; //0和1聯合成16位PWM; PWMCAE_CAE1=0; //選擇輸出模式為左對齊輸出模式 PWMCNT01 = 0; //計數器清零; PWMPOL_PPOL1=1; //先輸出高電平,計數到DTY時,反轉電平 PWMPRCLK = 0X40; //clockA 不分頻,clockA=busclock=16MHz;CLK B 16分頻:1Mhz PWMSCLA = 0x08; //對clock SA 16分頻,pwm clock=clockA/16=1MHz; PWMCLK_PCLK1 = 1; //選擇clock SA做時鐘源 PWMPER01 = 20000; //周期20ms; 50Hz; PWMDTY01 = 1500; //高電平時間為1.5ms; PWME_PWME1 = 1;
上傳時間: 2013-11-04
上傳用戶:狗日的日子
本程序是一個用匯編編的精致的圖形時鐘,運行時雙擊clock圖標即可,鐘表顯示的時間為本機系統的時間。 按b鍵可擴大畫面 ;按s鍵可縮小畫面;按c鍵可改變顏色;按e鍵可聽音樂;按q鍵退出本程序.
上傳時間: 2014-01-16
上傳用戶:qlpqlq
報時小鬧鐘 本程序是一個用匯編編的精致的圖形時鐘,運行時雙擊clock圖標即可, 鐘表顯示的時間為本機系統的時間。 按b鍵可擴大畫面 ;按s鍵可縮小畫面;按c鍵可改變顏色;按e鍵可聽音樂; 按q鍵退出本程序.
上傳時間: 2013-12-31
上傳用戶:dengzb84
報時小鬧鐘 本程序是一個用匯編編的精致的圖形時鐘,運行時雙擊clock圖標即可, 鐘表顯示的時間為本機系統的時間。 按b鍵可擴大畫面 ;按s鍵可縮小畫面;按c鍵可改變顏色;按e鍵可聽音樂; 按q鍵退出本程序.
上傳時間: 2015-05-04
上傳用戶:515414293
報時小鬧鐘 本程序是一個用匯編編的精致的圖形時鐘,運行時雙擊clock圖標即可, 鐘表顯示的時間為本機系統的時間。 按b鍵可擴大畫面 ;按s鍵可縮小畫面;按c鍵可改變顏色;按e鍵可聽音樂; 按q鍵退出本程序.
上傳時間: 2014-01-13
上傳用戶:franktu
c8051f020 實時時鐘模塊程序 內含IIC模塊程序/********************** SYSTEM CLOCK 8M********************************/ extern unsigned char xdata currenttime[16]={0} extern unsigned char xdata settime[16]={ 0x00, // control regesiter 1 0x00, // control regesiter 2 0x01, //current second 0x19, //current minute 0x20, //current hour 0x29, //current data 0x04, //current week 0x07, //current month 0x05, //current year 0x00, // alarm value reset 0x00, // alarm value reset 0x00, // alarm value reset 0x00, // alarm value reset 0x00, // clk out disable 0x00, // close timer 0x00, } /*********************************************************************/ extern void Current_Time ( void ) extern void Set_Time ( void )
標簽: c8051f020 SYSTEM CLOCK IIC
上傳時間: 2015-06-30
上傳用戶:edisonfather
Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標簽: Implemented following compile command
上傳時間: 2014-01-01
上傳用戶:lhc9102
There are many different (and often confusing) terms associated with clock-based devices. This application note attempts to clarify these terms, and hence serves as a comprehensive reference on clock terminology. This application note can be divided into two sections. The first section describes and distinguishes between various clock sources available today. The second section defines and distinguishes between various parameters used to describe clocks. This section also provides methods of measuring some of these parameters.
標簽: clock-based associated different confusing
上傳時間: 2015-12-02
上傳用戶:sssl
報時小鬧鐘 本程序是一個用匯編編的精致的圖形時鐘,運行時雙擊clock圖標即可, 鐘表顯示的時間為本機系統的時間。 按b鍵可擴大畫面 ;按s鍵可縮小畫面;按c鍵可改變顏色;按e鍵可聽音樂; 按q鍵退出本程序.
上傳時間: 2016-07-09
上傳用戶:笨小孩
本程序是一個用匯編編的精致的圖形時鐘,運行時雙擊clock圖標即可, 鐘表顯示的時間為本機系統的時間。 按b鍵可擴大畫面 ;按s鍵可縮小畫面;按c鍵可改變顏色;按e鍵可聽音樂; 按q鍵退出本程序.
上傳時間: 2014-01-02
上傳用戶:拔絲土豆