VIP專區(qū)-嵌入式/單片機(jī)編程源碼精選合集系列(146)資源包含以下內(nèi)容:1. 本程序能夠在沒(méi)有操作系統(tǒng)下可以測(cè)試LCD的驅(qū)動(dòng).2. ADS下LDR命令詳細(xì)示例.3. 本程序是ADS1.2下的匯編語(yǔ)言的示例程序!.4. 自己寫(xiě)的一個(gè)萬(wàn)年歷程序,能有200多行代碼.盡供參考..5. 這是個(gè)Mp3源代碼.6. sd 的spi模式詳細(xì)的中文資料.7. mmc card 各種操作詳細(xì)的邏輯時(shí)序圖.8. PCI總線系統(tǒng)結(jié)構(gòu)、性能及總線操作時(shí)序和總線控制權(quán)的仲裁問(wèn)題.9. ebook of matlab gui using.10. PAN3101ProgrammingGuideV11原像一手資料.11. 基于NIOSii的網(wǎng)絡(luò)監(jiān)控系統(tǒng)設(shè)計(jì).12. mp3 方案源代碼.13. 用VB實(shí)現(xiàn)S7-300PLC與PC機(jī)的普通串口通信 jiankong.14. 多功能數(shù)據(jù)采集卡上位機(jī)完整代碼.15. FAT32 文件系統(tǒng)中文規(guī)范.16. RTOS系統(tǒng).17. 用于AlRERA 公司DE2開(kāi)發(fā)板上的USB 調(diào)試的實(shí)例.18. UBOOT_command reference document.19. 對(duì)軟件進(jìn)行可達(dá)性測(cè)試的軟件.20. 用于檢測(cè)非自鎖的按鍵.21. 實(shí)現(xiàn)arm文件系統(tǒng).22. 基于arm的藍(lán)牙通訊協(xié)議的設(shè)計(jì).23. 射頻卡開(kāi)發(fā)系統(tǒng)芯片.24. 詳細(xì)介紹了PCB設(shè)計(jì)的各種方法.25. Matlab用戶圖像接口.26. GUI檔案.27. 東芝步進(jìn)電機(jī)驅(qū)動(dòng)芯片,電流3.5A,8細(xì)分驅(qū)動(dòng)步進(jìn)電機(jī)很常用芯片.28. Cross-Platform GUI Programming with wxWidgets wxWidgets設(shè)計(jì)指導(dǎo)書(shū).29. 24c08-24c31EEPROM初始化.30. 一個(gè)不錯(cuò)的需求分析實(shí)例!希望對(duì)大家有幫助.31. 一個(gè)完整的系統(tǒng),用到NIOSII 里面包括語(yǔ)言結(jié)構(gòu)的.32. 嵌入式系統(tǒng)的上課講義...使用三星的開(kāi)發(fā)版...主要是吃ARM的指令集.33. 關(guān)于嵌入式方面的資料.34. 主要介紹一種基于Philips公司的MF RC500的射頻識(shí)別讀寫(xiě)器的設(shè)計(jì):首先介紹系統(tǒng)的組成以及MF RC500的特性.35. Windows嵌入式開(kāi)發(fā)系列課程(6):?jiǎn)?dòng)程序BootLoader的分析 _PDF.36. design the connecter between dsp and sed12.37. 48種常用軟件的指南.38. 44b0(arm)初始化程序,代碼可以通用,方便嵌入式系統(tǒng)的開(kāi)發(fā).39. uCOS在LPC213X上的移植。適合ARM嵌入式系統(tǒng)初學(xué)者。.40. AD1674模數(shù)轉(zhuǎn)換器件資料。包含了AD1674的應(yīng)用接口電路。.
上傳時(shí)間: 2013-05-28
上傳用戶:eeworm
交流電動(dòng)機(jī)是一個(gè)多變量、高階、強(qiáng)耦合的非線性系統(tǒng),不象直流電機(jī)那樣易于控制轉(zhuǎn)矩,采用矢量控制技術(shù)可解決傳統(tǒng)交流調(diào)速的難題,使交流電機(jī)可以按直流電機(jī)的控制規(guī)律來(lái)進(jìn)行控制,而無(wú)傳感器矢量控制技術(shù)由于可以省去速度傳感器,使相應(yīng)的交流調(diào)速系統(tǒng)變得簡(jiǎn)便、廉價(jià)和可靠,所以成為當(dāng)前研究的熱點(diǎn),本論文工作就是這方面的一個(gè)嘗試。 論文首先介紹了矢量控制技術(shù)的基本理論。對(duì)感應(yīng)電動(dòng)機(jī)在三相靜止坐標(biāo)系下強(qiáng)耦合和互感變參數(shù)的數(shù)學(xué)模型,通過(guò)坐標(biāo)變換,導(dǎo)出感應(yīng)電機(jī)在兩相同步旋轉(zhuǎn)坐標(biāo)系下的數(shù)學(xué)模型,然后將同步坐標(biāo)系按轉(zhuǎn)子磁場(chǎng)定向,實(shí)現(xiàn)了對(duì)轉(zhuǎn)子磁鏈和轉(zhuǎn)矩的分別控制,從而可以按直流電機(jī)的控制規(guī)律來(lái)控制交流電機(jī)。 其次,論文基于同步軸系下的感應(yīng)電動(dòng)機(jī)電壓磁鏈方程式,提出了一種感應(yīng)電動(dòng)機(jī)按轉(zhuǎn)子磁場(chǎng)定向的矢量控制方法,利用在同步軸系中T軸電流的誤差信號(hào)實(shí)現(xiàn)對(duì)電機(jī)速度的估算,這種速度估算方法結(jié)構(gòu)簡(jiǎn)單,有一定的自適應(yīng)能力。同時(shí)在該無(wú)傳感器矢量控制系統(tǒng)中,由于采用了經(jīng)典的PI調(diào)節(jié)器,使得控制系統(tǒng)更為簡(jiǎn)單易行。 論文利用MATLAB建立了該無(wú)傳感器矢量控制系統(tǒng)的仿真模型。為提高系統(tǒng)的適應(yīng)性和仿真結(jié)果的準(zhǔn)確性,仿真模型采用了標(biāo)么值系統(tǒng),并考慮了控制周期和采樣信號(hào)周期對(duì)仿真結(jié)果的影響。討論了離散控制引起的相位補(bǔ)償問(wèn)題,使仿真結(jié)果更接近實(shí)際工程系統(tǒng)。 最后,通過(guò)仿真進(jìn)一步驗(yàn)證了本文提出的無(wú)傳感器矢量控制系統(tǒng)的正確性和可行性,也證明了速度估計(jì)模型對(duì)速度估計(jì)準(zhǔn)確,且對(duì)參數(shù)的變化有較強(qiáng)的魯棒性。
標(biāo)簽: 無(wú)傳感器 矢量控制系統(tǒng) 速度
上傳時(shí)間: 2013-06-02
上傳用戶:libinxny
/* * EULER S ALGORITHM 5.1 * * TO APPROXIMATE THE SOLUTION OF THE INITIAL VALUE PROBLEM: * Y = F(T,Y), A<=T<=B, Y(A) = ALPHA, * AT N+1 EQUALLY SPACED POINTS IN THE INTERVAL [A,B]. * * INPUT: ENDPOINTS A,B INITIAL CONDITION ALPHA INTEGER N. * * OUTPUT: APPROXIMATION W TO Y AT THE (N+1) VALUES OF T. */
標(biāo)簽: APPROXIMATE ALGORITHM THE SOLUTION
上傳時(shí)間: 2015-08-20
上傳用戶:zhangliming420
Trie樹(shù)既可用于一般的字典搜索,也可用于索引查找。對(duì)于給定的一個(gè)字符串a(chǎn)1,a2,a3,...,an.則采用TRIE樹(shù)搜索經(jīng)過(guò)n次搜索即可完成一次查找。不過(guò)好像還是沒(méi)有B樹(shù)的搜索效率高,B樹(shù)搜索算法復(fù)雜度為logt(n+1/2).當(dāng)t趨向大,搜索效率變得高效。怪不得DB2的訪問(wèn)內(nèi)存設(shè)置為虛擬內(nèi)存的一個(gè)PAGE大小,而且?guī)袚Q頻率降低,無(wú)需經(jīng)常的PAGE切換。
上傳時(shí)間: 2016-07-06
上傳用戶:sk5201314
Kullanı lan bazı matlab bilgileri Matlabda kodlar mfile lara yazı lı p kaydedilebilir. Ü st menüden, file, new, mfile. Command windowa yazdı kları nı zı kaydedemezsiniz. Yazdı ğ ı nı z kodu ç alı ş tı rabilmeniz iç in ç alı ş tı ğ ı nı z current directory nin altı na kaydetmelisiniz. Current directory i dosyanı n bulunduğ u yere de gö türebilirsiniz
標(biāo)簽: 305 bilgileri kaydedile Matlabda
上傳時(shí)間: 2014-01-06
上傳用戶:miaochun888
實(shí)驗(yàn)源代碼 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("請(qǐng)輸入矩陣第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可傳遞閉包關(guān)系矩陣是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元關(guān)系的可傳遞閉包\n"); void warshall(int,int); int k , n; printf("請(qǐng)輸入矩陣的行數(shù) i: "); scanf("%d",&k); 四川大學(xué)實(shí)驗(yàn)報(bào)告 printf("請(qǐng)輸入矩陣的列數(shù) j: "); scanf("%d",&n); warshall(k,n); }
標(biāo)簽: warshall 離散 實(shí)驗(yàn)
上傳時(shí)間: 2016-06-27
上傳用戶:梁雪文以
#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define NULL 0 #define MaxSize 30 typedef struct athletestruct /*運(yùn)動(dòng)員*/ { char name[20]; int score; /*分?jǐn)?shù)*/ int range; /**/ int item; /*項(xiàng)目*/ }ATH; typedef struct schoolstruct /*學(xué)校*/ { int count; /*編號(hào)*/ int serial; /**/ int menscore; /*男選手分?jǐn)?shù)*/ int womenscore; /*女選手分?jǐn)?shù)*/ int totalscore; /*總分*/ ATH athlete[MaxSize]; /**/ struct schoolstruct *next; }SCH; int nsc,msp,wsp; int ntsp; int i,j; int overgame; int serial,range; int n; SCH *head,*pfirst,*psecond; int *phead=NULL,*pafirst=NULL,*pasecond=NULL; void create(); void input () { char answer; head = (SCH *)malloc(sizeof(SCH)); /**/ head->next = NULL; pfirst = head; answer = 'y'; while ( answer == 'y' ) { Is_Game_DoMain: printf("\nGET Top 5 when odd\nGET Top 3 when even"); printf("\n輸入運(yùn)動(dòng)項(xiàng)目序號(hào) (x<=%d):",ntsp); scanf("%d",pafirst); overgame = *pafirst; if ( pafirst != phead ) { for ( pasecond = phead ; pasecond < pafirst ; pasecond ++ ) { if ( overgame == *pasecond ) { printf("\n這個(gè)項(xiàng)目已經(jīng)存在請(qǐng)選擇其他的數(shù)字\n"); goto Is_Game_DoMain; } } } pafirst = pafirst + 1; if ( overgame > ntsp ) { printf("\n項(xiàng)目不存在"); printf("\n請(qǐng)重新輸入"); goto Is_Game_DoMain; } switch ( overgame%2 ) { case 0: n = 3;break; case 1: n = 5;break; } for ( i = 1 ; i <= n ; i++ ) { Is_Serial_DoMain: printf("\n輸入序號(hào) of the NO.%d (0<x<=%d): ",i,nsc); scanf("%d",&serial); if ( serial > nsc ) { printf("\n超過(guò)學(xué)校數(shù)目,請(qǐng)重新輸入"); goto Is_Serial_DoMain; } if ( head->next == NULL ) { create(); } psecond = head->next ; while ( psecond != NULL ) { if ( psecond->serial == serial ) { pfirst = psecond; pfirst->count = pfirst->count + 1; goto Store_Data; } else { psecond = psecond->next; } } create(); Store_Data: pfirst->athlete[pfirst->count].item = overgame; pfirst->athlete[pfirst->count].range = i; pfirst->serial = serial; printf("Input name:) : "); scanf("%s",pfirst->athlete[pfirst->count].name); } printf("\n繼續(xù)輸入運(yùn)動(dòng)項(xiàng)目(y&n)?"); answer = getchar(); printf("\n"); } } void calculate() /**/ { pfirst = head->next; while ( pfirst->next != NULL ) { for (i=1;i<=pfirst->count;i++) { if ( pfirst->athlete[i].item % 2 == 0 ) { switch (pfirst->athlete[i].range) { case 1:pfirst->athlete[i].score = 5;break; case 2:pfirst->athlete[i].score = 3;break; case 3:pfirst->athlete[i].score = 2;break; } } else { switch (pfirst->athlete[i].range) { case 1:pfirst->athlete[i].score = 7;break; case 2:pfirst->athlete[i].score = 5;break; case 3:pfirst->athlete[i].score = 3;break; case 4:pfirst->athlete[i].score = 2;break; case 5:pfirst->athlete[i].score = 1;break; } } if ( pfirst->athlete[i].item <=msp ) { pfirst->menscore = pfirst->menscore + pfirst->athlete[i].score; } else { pfirst->womenscore = pfirst->womenscore + pfirst->athlete[i].score; } } pfirst->totalscore = pfirst->menscore + pfirst->womenscore; pfirst = pfirst->next; } } void output() { pfirst = head->next; psecond = head->next; while ( pfirst->next != NULL ) { // clrscr(); printf("\n第%d號(hào)學(xué)校的結(jié)果成績(jī):",pfirst->serial); printf("\n\n項(xiàng)目的數(shù)目\t學(xué)校的名字\t分?jǐn)?shù)"); for (i=1;i<=ntsp;i++) { for (j=1;j<=pfirst->count;j++) { if ( pfirst->athlete[j].item == i ) { printf("\n %d\t\t\t\t\t\t%s\n %d",i,pfirst->athlete[j].name,pfirst->athlete[j].score);break; } } } printf("\n\n\n\t\t\t\t\t\t按任意建 進(jìn)入下一頁(yè)"); getchar(); pfirst = pfirst->next; } // clrscr(); printf("\n運(yùn)動(dòng)會(huì)結(jié)果:\n\n學(xué)校編號(hào)\t男運(yùn)動(dòng)員成績(jī)\t女運(yùn)動(dòng)員成績(jī)\t總分"); pfirst = head->next; while ( pfirst->next != NULL ) { printf("\n %d\t\t %d\t\t %d\t\t %d",pfirst->serial,pfirst->menscore,pfirst->womenscore,pfirst->totalscore); pfirst = pfirst->next; } printf("\n\n\n\t\t\t\t\t\t\t按任意建結(jié)束"); getchar(); } void create() { pfirst = (struct schoolstruct *)malloc(sizeof(struct schoolstruct)); pfirst->next = head->next ; head->next = pfirst ; pfirst->count = 1; pfirst->menscore = 0; pfirst->womenscore = 0; pfirst->totalscore = 0; } void Save() {FILE *fp; if((fp = fopen("school.dat","wb"))==NULL) {printf("can't open school.dat\n"); fclose(fp); return; } fwrite(pfirst,sizeof(SCH),10,fp); fclose(fp); printf("文件已經(jīng)成功保存\n"); } void main() { system("cls"); printf("\n\t\t\t 運(yùn)動(dòng)會(huì)分?jǐn)?shù)統(tǒng)計(jì)\n"); printf("輸入學(xué)校數(shù)目 (x>= 5):"); scanf("%d",&nsc); printf("輸入男選手的項(xiàng)目(x<=20):"); scanf("%d",&msp); printf("輸入女選手項(xiàng)目(<=20):"); scanf("%d",&wsp); ntsp = msp + wsp; phead = (int *)calloc(ntsp,sizeof(int)); pafirst = phead; pasecond = phead; input(); calculate(); output(); Save(); }
標(biāo)簽: 源代碼
上傳時(shí)間: 2016-12-28
上傳用戶:150501
#include<stdio.h> #define TREEMAX 100 typedef struct BT { char data; BT *lchild; BT *rchild; }BT; BT *CreateTree(); void Preorder(BT *T); void Postorder(BT *T); void Inorder(BT *T); void Leafnum(BT *T); void Nodenum(BT *T); int TreeDepth(BT *T); int count=0; void main() { BT *T=NULL; char ch1,ch2,a; ch1='y'; while(ch1=='y'||ch1=='y') { printf("\n"); printf("\n\t\t 二叉樹(shù)子系統(tǒng)"); printf("\n\t\t*****************************************"); printf("\n\t\t 1---------建二叉樹(shù) "); printf("\n\t\t 2---------先序遍歷 "); printf("\n\t\t 3---------中序遍歷 "); printf("\n\t\t 4---------后序遍歷 "); printf("\n\t\t 5---------求葉子數(shù) "); printf("\n\t\t 6---------求結(jié)點(diǎn)數(shù) "); printf("\n\t\t 7---------求樹(shù)深度 "); printf("\n\t\t 0---------返 回 "); printf("\n\t\t*****************************************"); printf("\n\t\t 請(qǐng)選擇菜單號(hào) (0--7)"); scanf("%c",&ch2); getchar(); printf("\n"); switch(ch2) { case'1': printf("\n\t\t請(qǐng)按先序序列輸入二叉樹(shù)的結(jié)點(diǎn):\n"); printf("\n\t\t說(shuō)明:輸入結(jié)點(diǎn)(‘0’代表后繼結(jié)點(diǎn)為空)后按回車。\n"); printf("\n\t\t請(qǐng)輸入根結(jié)點(diǎn):"); T=CreateTree(); printf("\n\t\t二叉樹(shù)成功建立!\n");break; case'2': printf("\n\t\t該二叉樹(shù)的先序遍歷序列為:"); Preorder(T);break; case'3': printf("\n\t\t該二叉樹(shù)的中序遍歷序列為:"); Inorder(T);break; case'4': printf("\n\t\t該二叉樹(shù)的后序遍歷序列為:"); Postorder(T);break; case'5': count=0;Leafnum(T); printf("\n\t\t該二叉樹(shù)有%d個(gè)葉子。\n",count);break; case'6': count=0;Nodenum(T); printf("\n\t\t該二叉樹(shù)總共有%d個(gè)結(jié)點(diǎn)。\n",count);break; case'7': printf("\n\t\t該樹(shù)的深度為:%d",TreeDepth(T)); break; case'0': ch1='n';break; default: printf("\n\t\t***請(qǐng)注意:輸入有誤!***"); } if(ch2!='0') { printf("\n\n\t\t按【Enter】鍵繼續(xù),按任意鍵返回主菜單!\n"); a=getchar(); if(a!='\xA') { getchar(); ch1='n'; } } } } BT *CreateTree() { BT *t; char x; scanf("%c",&x); getchar(); if(x=='0') t=NULL; else { t=new BT; t->data=x; printf("\n\t\t請(qǐng)輸入%c結(jié)點(diǎn)的左子結(jié)點(diǎn):",t->data); t->lchild=CreateTree(); printf("\n\t\t請(qǐng)輸入%c結(jié)點(diǎn)的右子結(jié)點(diǎn):",t->data); t->rchild=CreateTree(); } return t; } void Preorder(BT *T) { if(T) { printf("%3c",T->data); Preorder(T->lchild); Preorder(T->rchild); } } void Inorder(BT *T) { if(T) { Inorder(T->lchild); printf("%3c",T->data); Inorder(T->rchild); } } void Postorder(BT *T) { if(T) { Postorder(T->lchild); Postorder(T->rchild); printf("%3c",T->data); } } void Leafnum(BT *T) { if(T) { if(T->lchild==NULL&&T->rchild==NULL) count++; Leafnum(T->lchild); Leafnum(T->rchild); } } void Nodenum(BT *T) { if(T) { count++; Nodenum(T->lchild); Nodenum(T->rchild); } } int TreeDepth(BT *T) { int ldep,rdep; if(T==NULL) return 0; else { ldep=TreeDepth(T->lchild); rdep=TreeDepth(T->rchild); if(ldep>rdep) return ldep+1; else return rdep+1; } }
上傳時(shí)間: 2020-06-11
上傳用戶:ccccy
踐踏堆棧 [C語(yǔ)言編程] n. 在許多C語(yǔ)言的實(shí)現(xiàn)中,有可能通過(guò)寫(xiě)入例程 中所聲明的數(shù)組的結(jié)尾部分來(lái)破壞可執(zhí)行的堆棧. 所謂 踐踏堆棧 。使用的 代碼可以造成例程的返回異常,從而跳到任意的地址.這導(dǎo)致了一些極為險(xiǎn)惡的數(shù)據(jù)相關(guān)漏洞
標(biāo)簽: n. 堆棧 C語(yǔ)言編程 C語(yǔ)言
上傳時(shí)間: 2013-12-16
上傳用戶:WMC_geophy
/** * @author jakcy_wu(wujichun) * * 預(yù)測(cè)分析--本算法只適用于受周期變化或者波動(dòng)影響的數(shù)據(jù) * 權(quán)值移動(dòng)平均算法 * 本期預(yù)測(cè)值=(前期值*權(quán)數(shù))求和/n * * 默認(rèn)權(quán)值為{1,1,1},取最近3次的平均 * 注意權(quán)值和必須=權(quán)值集合.length */
標(biāo)簽: jakcy_wu wujichun author 算法
上傳時(shí)間: 2014-01-26
上傳用戶:weiwolkt
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1