亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

24<b>3</b>

  • AVR單片機數(shù)碼管秒表顯示

    #include<iom16v.h> #include<macros.h> #define uint unsigned int #define uchar unsigned char uint a,b,c,d=0; void delay(c) { for for(a=0;a<c;a++) for(b=0;b<12;b++); }; uchar tab[]={ 0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,

    標(biāo)簽: AVR 單片機 數(shù)碼管

    上傳時間: 2013-10-21

    上傳用戶:13788529953

  • 8051電子鐘設(shè)計論文

    一:微電腦設(shè)計11.1:微電腦基本結(jié)構(gòu)11.2:單芯片微電腦21.3:單芯片微電腦種類3二:MCS51架構(gòu)介紹62.1:接腳說明62.2:內(nèi)部構(gòu)造圖72.3:系統(tǒng)時序82.4:內(nèi)存結(jié)構(gòu)92.5:系統(tǒng)重制142.6:中斷結(jié)構(gòu)15三:LCD簡介243.1:簡介243.2:內(nèi)部結(jié)構(gòu)263.3:模塊指令29圖1-1 微電腦基本結(jié)構(gòu)1表1-1 MCS-51 單芯片比較.5圖2-1 MCS-51 接腳圖.6圖2-2 內(nèi)部結(jié)構(gòu)方塊圖8圖2-3 MCS-51 指令執(zhí)行時序.9圖2-4 MCS-51 內(nèi)部數(shù)據(jù)存儲器.10圖2-5 MCS-51 程序內(nèi)存結(jié)構(gòu)圖.10圖2-6 MCS-51內(nèi)部數(shù)據(jù)存儲器結(jié)構(gòu)11圖2-7 特殊功能緩存器12表2-1 特殊功能緩存器(SFC)初值設(shè)定.13圖2-8 數(shù)據(jù)存儲器結(jié)構(gòu)圖13表2-2 SFR重置設(shè)定值.15表2-3 中斷向量17圖2-9 中斷結(jié)構(gòu)方塊圖18表2-4 中斷致能緩存器IE19表2-5 中斷優(yōu)先權(quán)緩存器(IP) .20表2-6 中斷源優(yōu)先權(quán)順序21表2-7 計時/計數(shù)控制緩存器TCON.21表2-8 計時/計數(shù)模式設(shè)定.23圖3-1 LCD 的接口電路方圖24表3-1 LCD 接腳說明25表3-2 控制腳功能25表3-3 LCD 模塊地址對映26表3-4 字符產(chǎn)生器與字型碼對映27表3-5 LCD 內(nèi)字型表28表3-6 LCD 控制指令表32圖3-2 初始化流程圖33表4-1 功能說明34圖4-1 電路圖35圖4-2 程序流程圖36此篇專題主要研究是利用8051芯片制作出電子鐘,利用LCD當(dāng)作顯示介面,并且設(shè)置有鬧鈴功能,是很可以融入生活的小家電。關(guān)鍵詞: AT89C51,LCD,電子鍾,數(shù)字鐘,鬧鈴。四:電子鐘344.1:相關(guān)知識344.2:功能說明344.3`:流程圖36五:心得感想41六:程序代碼42附錄:MCS51指令集.54參考數(shù)據(jù)60

    標(biāo)簽: 8051 電子鐘 論文

    上傳時間: 2013-10-11

    上傳用戶:butterfly2013

  • 題目:利用條件運算符的嵌套來完成此題:學(xué)習(xí)成績>=90分的同學(xué)用A表示

    題目:利用條件運算符的嵌套來完成此題:學(xué)習(xí)成績>=90分的同學(xué)用A表示,60-89分之間的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b這是條件運算符的基本例子。

    標(biāo)簽: gt 90 運算符 嵌套

    上傳時間: 2015-01-08

    上傳用戶:lifangyuan12

  • RSA算法 :首先, 找出三個數(shù), p, q, r, 其中 p, q 是兩個相異的質(zhì)數(shù), r 是與 (p-1)(q-1) 互質(zhì)的數(shù)...... p, q, r 這三個數(shù)便是 person_key

    RSA算法 :首先, 找出三個數(shù), p, q, r, 其中 p, q 是兩個相異的質(zhì)數(shù), r 是與 (p-1)(q-1) 互質(zhì)的數(shù)...... p, q, r 這三個數(shù)便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 這個 m 一定存在, 因為 r 與 (p-1)(q-1) 互質(zhì), 用輾轉(zhuǎn)相除法就可以得到了..... 再來, 計算 n = pq....... m, n 這兩個數(shù)便是 public_key ,編碼過程是, 若資料為 a, 將其看成是一個大整數(shù), 假設(shè) a < n.... 如果 a >= n 的話, 就將 a 表成 s 進(jìn)位 (s

    標(biāo)簽: person_key RSA 算法

    上傳時間: 2013-12-14

    上傳用戶:zhuyibin

  • The government of a small but important country has decided that the alphabet needs to be streamline

    The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition

    標(biāo)簽: government streamline important alphabet

    上傳時間: 2015-06-09

    上傳用戶:weixiao99

  • 上下文無關(guān)文法(Context-Free Grammar, CFG)是一個4元組G=(V, T, S, P)

    上下文無關(guān)文法(Context-Free Grammar, CFG)是一個4元組G=(V, T, S, P),其中,V和T是不相交的有限集,S∈V,P是一組有限的產(chǎn)生式規(guī)則集,形如A→α,其中A∈V,且α∈(V∪T)*。V的元素稱為非終結(jié)符,T的元素稱為終結(jié)符,S是一個特殊的非終結(jié)符,稱為文法開始符。 設(shè)G=(V, T, S, P)是一個CFG,則G產(chǎn)生的語言是所有可由G產(chǎn)生的字符串組成的集合,即L(G)={x∈T* | Sx}。一個語言L是上下文無關(guān)語言(Context-Free Language, CFL),當(dāng)且僅當(dāng)存在一個CFG G,使得L=L(G)。 *⇒ 例如,設(shè)文法G:S→AB A→aA|a B→bB|b 則L(G)={a^nb^m | n,m>=1} 其中非終結(jié)符都是大寫字母,開始符都是S,終結(jié)符都是小寫字母。

    標(biāo)簽: Context-Free Grammar CFG

    上傳時間: 2013-12-10

    上傳用戶:gaojiao1999

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.

    標(biāo)簽: represented integers group items

    上傳時間: 2016-01-17

    上傳用戶:jeffery

  • 離散實驗 一個包的傳遞 用warshall

     實驗源代碼 //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("請輸入矩陣第%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("請輸入矩陣的行數(shù) i: "); scanf("%d",&k); 四川大學(xué)實驗報告 printf("請輸入矩陣的列數(shù) j: "); scanf("%d",&n); warshall(k,n); } 

    標(biāo)簽: warshall 離散 實驗

    上傳時間: 2016-06-27

    上傳用戶:梁雪文以

  • 道理特分解法

    #include "iostream" using namespace std; class Matrix { private: double** A; //矩陣A double *b; //向量b public: int size; Matrix(int ); ~Matrix(); friend double* Dooli(Matrix& ); void Input(); void Disp(); }; Matrix::Matrix(int x) { size=x; //為向量b分配空間并初始化為0 b=new double [x]; for(int j=0;j<x;j++) b[j]=0; //為向量A分配空間并初始化為0 A=new double* [x]; for(int i=0;i<x;i++) A[i]=new double [x]; for(int m=0;m<x;m++) for(int n=0;n<x;n++) A[m][n]=0; } Matrix::~Matrix() { cout<<"正在析構(gòu)中~~~~"<<endl; delete b; for(int i=0;i<size;i++) delete A[i]; delete A; } void Matrix::Disp() { for(int i=0;i<size;i++) { for(int j=0;j<size;j++) cout<<A[i][j]<<" "; cout<<endl; } } void Matrix::Input() { cout<<"請輸入A:"<<endl; for(int i=0;i<size;i++) for(int j=0;j<size;j++){ cout<<"第"<<i+1<<"行"<<"第"<<j+1<<"列:"<<endl; cin>>A[i][j]; } cout<<"請輸入b:"<<endl; for(int j=0;j<size;j++){ cout<<"第"<<j+1<<"個:"<<endl; cin>>b[j]; } } double* Dooli(Matrix& A) { double *Xn=new double [A.size]; Matrix L(A.size),U(A.size); //分別求得U,L的第一行與第一列 for(int i=0;i<A.size;i++) U.A[0][i]=A.A[0][i]; for(int j=1;j<A.size;j++) L.A[j][0]=A.A[j][0]/U.A[0][0]; //分別求得U,L的第r行,第r列 double temp1=0,temp2=0; for(int r=1;r<A.size;r++){ //U for(int i=r;i<A.size;i++){ for(int k=0;k<r-1;k++) temp1=temp1+L.A[r][k]*U.A[k][i]; U.A[r][i]=A.A[r][i]-temp1; } //L for(int i=r+1;i<A.size;i++){ for(int k=0;k<r-1;k++) temp2=temp2+L.A[i][k]*U.A[k][r]; L.A[i][r]=(A.A[i][r]-temp2)/U.A[r][r]; } } cout<<"計算U得:"<<endl; U.Disp(); cout<<"計算L的:"<<endl; L.Disp(); double *Y=new double [A.size]; Y[0]=A.b[0]; for(int i=1;i<A.size;i++ ){ double temp3=0; for(int k=0;k<i-1;k++) temp3=temp3+L.A[i][k]*Y[k]; Y[i]=A.b[i]-temp3; } Xn[A.size-1]=Y[A.size-1]/U.A[A.size-1][A.size-1]; for(int i=A.size-1;i>=0;i--){ double temp4=0; for(int k=i+1;k<A.size;k++) temp4=temp4+U.A[i][k]*Xn[k]; Xn[i]=(Y[i]-temp4)/U.A[i][i]; } return Xn; } int main() { Matrix B(4); B.Input(); double *X; X=Dooli(B); cout<<"~~~~解得:"<<endl; for(int i=0;i<B.size;i++) cout<<"X["<<i<<"]:"<<X[i]<<" "; cout<<endl<<"呵呵呵呵呵"; return 0; } 

    標(biāo)簽: 道理特分解法

    上傳時間: 2018-05-20

    上傳用戶:Aa123456789

  • 周立功RS485協(xié)議指南 44頁 高清文字版

    周立功RS485協(xié)議指南,RS485選型及應(yīng)用指南。 1 章 RS-485 選型及應(yīng)用指南 .........................................................................1 1.1 RS-232/422/485 標(biāo)準(zhǔn) ...............................................................................................1 1.1.1 RS-232 標(biāo)準(zhǔn) .....................................................................................................2 1.1.2 RS-422/485 標(biāo)準(zhǔn) ..............................................................................................2 1.2 RS-485/RS-422 芯片................................................................................................5 1.2.1 增強型低功耗半雙工 RS-485 收發(fā)器-SP481E/SP485E ..............................7 1.2.2 1/10 單位負(fù)載 RS-485 收發(fā)器-SP481R/SP485R .....................................10 1.2.3 +3.3V 低功耗半雙工 RS-485 收發(fā)器-SP3481/SP3485..............................13 1.2.4 增強型低功耗全雙工 RS-422 收發(fā)器-SP490E/SP491E ............................15 1.2.5 +3.3V 低功耗全雙工 RS-422 收發(fā)器-SP3490/SP3491..............................20 1.3 RS-485 接口電路 ...................................................................................................22 1.3.1 基本 RS-485 電路...........................................................................................22 1.3.2 隔離 RS-485 電路...........................................................................................23 1.3.3 上電抑制電路.................................................................................................24 1.3.4 RS-485 自動換向電路....................................................................................24 1.4 RS-485 通訊協(xié)議 ...................................................................................................25 1.4.1 ModBus 協(xié)議(RTU 模式)...............................................................................25 1.4.2 多功能電能表通訊規(guī)約(DL/T645-1997) ......................................................27 1.5 RS-485 程序設(shè)計 ...................................................................................................28 1.5.1 RS-485 接口電路............................................................................................28 1.5.2 通訊規(guī)約.........................................................................................................28 1.5.3 程序設(shè)計流程圖.............................................................................................29 1.5.4 數(shù)據(jù)接收部分.................................................................................................29 1.5.5 命令執(zhí)行部分.................................................................................................29 1.5.6 數(shù)據(jù)發(fā)送部分.................................................................................................30 1.5.7 RS-485 程序清單............................................................................................31 1.6 RS-485 應(yīng)用要點 ...................................................................................................38 1.6.1 合理選用芯片.................................................................................................38 1.6.2 終端匹配電阻.................................................................................................39 1.6.3 應(yīng)用層通信協(xié)議.............................................................................................39 1.6.4 3V-5V 系統(tǒng)的連接.........................................................................................39 1.6.5 網(wǎng)絡(luò)節(jié)點數(shù).....................................................................................................40 1.6.6 節(jié)點與主干距離.............................................................................................40 1.6.7 RS-485 系統(tǒng)的常見故障及處理方法............................................................40 1.6.8 RS-422 與 RS-485 的網(wǎng)絡(luò)拓樸 .....................................................................41 1.6.9 RS-422 與 RS-485 的接地問題 .....................................................................41 1.6.10 RS-422 與 RS-485 的瞬態(tài)保護(hù) .....................................................................42 1.7 參考文獻(xiàn).................................................................................................................43 廣州周立功單片機發(fā)展有限公司 Tel:(020)38730977 38730977 Fax:38730925 http://www.zlgmcu.通常的微處理器都集成有 1 路或多路硬件 UART 通道,可以非常方便地實現(xiàn)串行通訊。 在工業(yè)控制、電力通訊、智能儀表等領(lǐng)域中,也常常使用簡便易用的串行通訊方式作為數(shù)據(jù) 交換的手段。 但是,在工業(yè)控制等環(huán)境中,常會有電氣噪聲干擾傳輸線路,使用 RS-232 通訊時經(jīng)常 因外界的電氣干擾而導(dǎo)致信號傳輸錯誤;另外,RS-232 通訊的最大傳輸距離在不增加緩沖 器的情況下只可以達(dá)到 15 米。為了解決上述問題,RS-485/422 通訊方式就應(yīng)運而生了。 本章將詳細(xì)介紹 RS-485/422 原理與區(qū)別、元件選擇、參考電路、通訊規(guī)約、程序設(shè)計 等方面的應(yīng)用要點,以及在產(chǎn)品實踐中總結(jié)出的一些經(jīng)驗、竅門。

    標(biāo)簽: 周立功 rs485

    上傳時間: 2022-04-27

    上傳用戶:qingfengchizhu

主站蜘蛛池模板: 鹿邑县| 衡阳市| 平陆县| 琼结县| 呼图壁县| 沙湾县| 洞口县| 文昌市| 松潘县| 临高县| 古田县| 沁水县| 昌江| 柳江县| 肃宁县| 商水县| 页游| 调兵山市| 霍城县| 荥经县| 上饶市| 乐业县| 铅山县| 隆子县| 旅游| 竹溪县| 墨江| 陵川县| 邹城市| 崇州市| 双辽市| 赣榆县| 宁晋县| 五家渠市| 陇西县| 讷河市| 莒南县| 屯留县| 兴义市| 始兴县| 青铜峡市|