#nclude<reg51.h>#INclude<intrins.h>#銷nclude<math.h>#INclude<string.h>struct PID{unsigned int SetPoint;//設(shè)定目標(biāo) Desired Value unsigned int Proportion;//比例常數(shù)Proportional Const unsigned int integral;//積分常數(shù)Integral Const unsigned int Derivative://微分常數(shù)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,/占空比調(diào)節(jié)參數(shù)unsigned char set_temper=35;unsigned char temper;unsigned chari:unsigned charj=0;unsigned ints;
上傳時(shí)間: 2022-07-02
上傳用戶:xsr1983
經(jīng)過幾天的摸索我終于掌握用STM8庫的方法,但我還認(rèn)為不用庫也很好,1.首先要裝好ST8的開發(fā)環(huán)境,一個(gè)是ST Visual Develop一個(gè)是COSMIC stm8C語言編譯器.第三把STM8的庫下下來2.建立一個(gè)新的環(huán)境和一個(gè)工程,當(dāng)然工程和環(huán)境可同名3.這一點(diǎn)是關(guān)鍵,把STM8庫下的*FWLib/project\STVDCosmic STM8_interrupt_vetor.c考到你的新工程目錄下4.打開庫中的example目錄下的一個(gè)例子,把除了STM8_interrupt_vetor.c的所有東東考到你的工程下邊5,然后把要涉及的文件包進(jìn)去,這里注意當(dāng)編譯時(shí)提示,沒有函數(shù)時(shí),大家把函數(shù)名考一下,到庫CHM文件索引下,然后把C文件包含到INclude6.這時(shí)編譯大功告成了
標(biāo)簽: stm8
上傳時(shí)間: 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
標(biāo)簽: 4g 移動(dòng)通信
上傳時(shí)間: 2022-07-08
上傳用戶:
基于單片機(jī)的密碼鎖設(shè)計(jì),內(nèi)含工程文件和源碼文件以及電路圖#INclude "config.h" void main(){ LCD_Initial(); //lcd初始化 init_sys(); //硬件系統(tǒng)初始化 setpsw(); //密碼設(shè)置 while(1) { time=3; //限定嘗試3次 while(1) { inputpsw(); //輸入密碼 checkpsw(); //密碼驗(yàn)證 checksuper(); //驗(yàn)證是否是超級(jí)密碼 if(error_flag==0) {right();break;} else if(time>1) error(); //允許2次嘗試錯(cuò)誤 else {lock();break;} //3次錯(cuò)誤,系統(tǒng)鎖定 } }}
上傳時(shí)間: 2022-07-17
上傳用戶:默默
本程序所用的原理圖下載: 點(diǎn)這里 ,單片機(jī)芯片使用的stc89c52;找到相應(yīng)部分即可.這是一整個(gè)單片機(jī)開發(fā)板的電路圖其他的忽略.hex文件及其工程文件以下是通過測試的源代碼:/**功能:使用矩陣按鍵使得按鍵按下時(shí)數(shù)碼管上顯示各自對(duì)應(yīng)的數(shù)字(0 ~ F);*日期:2018-05-03-17:51;*特別說明:本程序代碼已經(jīng)通過調(diào)試,僅供學(xué)習(xí)使用;**//***********AT89C52-RC 單片機(jī)51hei 實(shí)驗(yàn)板***********//*****************51hei-開發(fā)板*********************/#INclude typedef unsigned int uint;typedef unsigned char uchar;
標(biāo)簽: 51單片機(jī)
上傳時(shí)間: 2022-07-23
上傳用戶:
介紹針對(duì)dsPIC33FJ32MC204或同系列單片機(jī)使用入門。1、開發(fā)環(huán)境選擇開發(fā)環(huán)境:MPLAB IDEV8.80編譯軟件:MPLABC30,其中v3.25版本C語言編譯器 pic30-gcc.exe,見下圖。嘗試過使用最新開發(fā)環(huán)境MPLABXIDEV1.95配合數(shù)種編譯器均無法對(duì)程序編譯通過。2、程序代碼PROJECT工程建立通過菜單中Project->Project Wizard 按步驟建立。建立完成后添加源文件c、頭文件h、鏈接文件gld,見下圖。其中源文件FIRST.c文件如下:#INclude"p33FJ32MC204.h"int main(){while(1);
標(biāo)簽: dspic33fj32mc204 入門
上傳時(shí)間: 2022-07-24
上傳用戶:
/**************** 掃頻函數(shù)*************FileName:Frepuecy_Sweep.cProjectName:FunctionDesc:CreateDate:Version:Author:ModifyHistory:Remark:5ms 執(zhí)行一次***************** 包含頭文件**********************/#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;//是否已經(jīng)掃過頻標(biāo)志/******************* 定義常量*********************/#define PWM1_DUTY_MIN 3u#define PWM1_DUTY_MAX 253u#define PWM1_CURRENT_MIN 10u//#define M1_Stop_500ms_Set_Value 100u
上傳時(shí)間: 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
標(biāo)簽: am2355n
上傳時(shí)間: 2022-07-26
上傳用戶:
#INclude"main.h"#INclude"cc1101.h"#INclude"lcd1602.h"void main(void){inti;UCHAR leng=0;//待接收字節(jié)長度UCHAR TXBuf[8]={0};//8字節(jié),如果需要更長的數(shù)據(jù)包,請(qǐng)正確設(shè)置UCHAR RXBuf[8]={0};l/接收緩存區(qū)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;
上傳時(shí)間: 2022-08-10
上傳用戶:ttalli
代碼目錄結(jié)構(gòu):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
標(biāo)簽: canopen 源代碼 canfestival
上傳時(shí)間: 2022-08-10
上傳用戶:
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1