#nclude<reg51.h>#INclude<intrins.h>#銷nclude<math.h>#INclude<string.h>struct PID{unsigned int SetPoint;//設定目標 Desired Value unsigned int Proportion;//比例常數Proportional Const unsigned int integral;//積分常數Integral Const unsigned int Derivative://微分常數Derivative Const unsigned int LastError;//Emorl-1]unsigned int PrevError;//Errorl-2]unsigned int SumError;//Sums of Errors struct PID spid;//PID Control Structure unsigned int rout;//PID Response(Output)unsigned int rin://PID Feedback(Input)sbit data1=P100;sbit clk=P141;sbit plus=P240;sbit subs=P241:sbit stop=P22;sbit output=P34;sbit DQ=P33;unsigned char flag,flag_1=0;unsigned char high_time,low_time,.count=0,/占空比調節參數unsigned char set_temper=35;unsigned char temper;unsigned chari:unsigned charj=0;unsigned ints;
上傳時間: 2022-07-02
上傳用戶:xsr1983
經過幾天的摸索我終于掌握用STM8庫的方法,但我還認為不用庫也很好,1.首先要裝好ST8的開發環境,一個是ST Visual Develop一個是COSMIC stm8C語言編譯器.第三把STM8的庫下下來2.建立一個新的環境和一個工程,當然工程和環境可同名3.這一點是關鍵,把STM8庫下的*FWLib/project\STVDCosmic STM8_interrupt_vetor.c考到你的新工程目錄下4.打開庫中的example目錄下的一個例子,把除了STM8_interrupt_vetor.c的所有東東考到你的工程下邊5,然后把要涉及的文件包進去,這里注意當編譯時提示,沒有函數時,大家把函數名考一下,到庫CHM文件索引下,然后把C文件包含到INclude6.這時編譯大功告成了
標簽: stm8
上傳時間: 2022-07-06
上傳用戶:
PrefaceDuring the past years, there has been a quickly rising interest in radio access technologies for providingmobile as well as nomadic and fixed services for voice, video, and data. The difference indesign, implementation, and use between telecom and datacom technologies is also becoming moreblurred. One example is cellular technologies from the telecom world being used for broadband dataand wireless LAN from the datacom world being used for voice-over IP.Today, the most widespread radio access technology for mobile communication is digital cellular,with the number of users passing 5 billion by 2010, which is more than half of the world’s population.It has emerged from early deployments of an expensive voice service for a few car-borne users,to today’s widespread use of mobile-communication devices that provide a range of mobile servicesand often INclude camera, MP3 player, and PDA functions. With this widespread use and increasinginterest in mobile communication, a continuing evolution ahead is foreseen.This book describes LTE, developed in 3GPP (Third Generation Partnership Project) and providingtrue 4G broadband mobile access, starting from the first version in release 8 and through the continuingevolution to release 10, the latest version of LTE. Release 10, also known as LTE-Advanced,is of particular interest as it is the major technology approved by the ITU as fulfilling the IMTAdvancedrequirements. The description in this book is based on LTE release 10 and thus provides acomplete description of the LTE-Advanced radio access from the bottom up.Chapter 1 gives the background to LTE and its evolution, looking also at the different standardsbodies and organizations involved in the process of defining 4G. It also gives a discussion of the reasonsand driving forces behind the evolution.Chapters 2–6 provide a deeper insight into some of the technologies that are part of LTE and itsevolution. Because of its generic nature, these chapters can be used as a background not only for LTEas described in this book, but also for readers who want to understand the technology behind othersystems, such as WCDMA/HSPA, WiMAX, and CDMA2000.Chapters 7–17 constitute the main part of the book. As a start, an introductory technical overviewof LTE is given, where the most important technology components are introduced based onthe generic technologies described in previous chapters. The following chapters provide a detaileddescription of the protocol structure, the downlink and uplink transmission schemes, and the associatedmechanisms for scheduling, retransmission and interference handling. Broadcast operation andrelaying are also described. This is followed by a discussion of the spectrum flexibility and the associated
上傳時間: 2022-07-08
上傳用戶:
基于單片機的密碼鎖設計,內含工程文件和源碼文件以及電路圖#INclude "config.h" void main(){ LCD_Initial(); //lcd初始化 init_sys(); //硬件系統初始化 setpsw(); //密碼設置 while(1) { time=3; //限定嘗試3次 while(1) { inputpsw(); //輸入密碼 checkpsw(); //密碼驗證 checksuper(); //驗證是否是超級密碼 if(error_flag==0) {right();break;} else if(time>1) error(); //允許2次嘗試錯誤 else {lock();break;} //3次錯誤,系統鎖定 } }}
上傳時間: 2022-07-17
上傳用戶:默默
本程序所用的原理圖下載: 點這里 ,單片機芯片使用的stc89c52;找到相應部分即可.這是一整個單片機開發板的電路圖其他的忽略.hex文件及其工程文件以下是通過測試的源代碼:/**功能:使用矩陣按鍵使得按鍵按下時數碼管上顯示各自對應的數字(0 ~ F);*日期:2018-05-03-17:51;*特別說明:本程序代碼已經通過調試,僅供學習使用;**//***********AT89C52-RC 單片機51hei 實驗板***********//*****************51hei-開發板*********************/#INclude typedef unsigned int uint;typedef unsigned char uchar;
標簽: 51單片機
上傳時間: 2022-07-23
上傳用戶:
介紹針對dsPIC33FJ32MC204或同系列單片機使用入門。1、開發環境選擇開發環境:MPLAB IDEV8.80編譯軟件:MPLABC30,其中v3.25版本C語言編譯器 pic30-gcc.exe,見下圖。嘗試過使用最新開發環境MPLABXIDEV1.95配合數種編譯器均無法對程序編譯通過。2、程序代碼PROJECT工程建立通過菜單中Project->Project Wizard 按步驟建立。建立完成后添加源文件c、頭文件h、鏈接文件gld,見下圖。其中源文件FIRST.c文件如下:#INclude"p33FJ32MC204.h"int main(){while(1);
標簽: dspic33fj32mc204 入門
上傳時間: 2022-07-24
上傳用戶:
/**************** 掃頻函數*************FileName:Frepuecy_Sweep.cProjectName:FunctionDesc:CreateDate:Version:Author:ModifyHistory:Remark:5ms 執行一次***************** 包含頭文件**********************/#INclude "Stdint_Sonix.h"#INclude "SysInit.h"#INclude "Frequency_Sweep.h"#INclude "adc.h"/***************** 定義全局變量*******************//***************** 聲明全局變量*******************/extern bit B_Moistrue;extern u8 r_adc1,r_adc2,r_adc3;bit B_SF_OK;//是否已經掃過頻標志/******************* 定義常量*********************/#define PWM1_DUTY_MIN 3u#define PWM1_DUTY_MAX 253u#define PWM1_CURRENT_MIN 10u//#define M1_Stop_500ms_Set_Value 100u
上傳時間: 2022-07-24
上傳用戶:
3-phase Sensor-less Fan Motor DriverAM2355NThe AM2355N is a 3-phase sensor-less DC fan motor driver IC. It senses the BEMF (BackElectro-Motive Force) of the motor in rotation and provides corresponding commutation current tothe motor. Rotation speed can be controlled by PWM input signal. The drivers INclude LockDetection, Thermal Shutdown, and Over-current Protection. Forward and Reverse control.www.junmintech.com
標簽: am2355n
上傳時間: 2022-07-26
上傳用戶:
#INclude"main.h"#INclude"cc1101.h"#INclude"lcd1602.h"void main(void){inti;UCHAR leng=0;//待接收字節長度UCHAR TXBuf[8]={0};//8字節,如果需要更長的數據包,請正確設置UCHAR RXBuf[8]={0};l/接收緩存區InitLcd1602();WriteAddressLcd1602(1,0);WriteCharForLCD1602("The CC1101 Test!");WriteAddressLcd1602(2,0);WriteCharForLCD1602("Design by XuJiel");Delaynms(6000);ClearLcd16020;Cpulnit();POWER_UP_RESET_CC1100(0;halRfWriteRfSetings();halSpiWriteBurstReg(CCxxx0_PATABLE,PaTabel,8);TxBuf[0]=1;
上傳時間: 2022-08-10
上傳用戶:ttalli
代碼目錄結構:debiandocdriversexamplesINcludeobjdictgensrctest.hg_archival.txt.hgignore.hgtags.travis.ymlappveyor.ymlAUTHORSbitbucket-pipelines.ymlCanFestival-3.vc9.slnCanFestival-3.vc9.vcprojCanFestival-3.vc10.slnCanFestival-3.vc10.vcxprojCanFestival-3.vc10.vcxproj.filtersCanFestival-3.vc15.slnCanFestival-3.vc15.vcxprojconfigureCONTRIBUTORSCOPYINGLICENCEMakefile.inREADME.md
標簽: canopen 源代碼 canfestival
上傳時間: 2022-08-10
上傳用戶: