電子發(fā)燒友網(wǎng):本資料是關(guān)于單片機(jī)及接口技術(shù)這門課程的期末考試試卷及答案的詳解。 8.當(dāng)需要從MCS-51單片機(jī)程序存儲器取數(shù)據(jù)時,采用的指令為( )。 a)MOV A, @R1 b)MOVC A, @A + DPTR c)MOVX A, @ R0 d)MOVX A, @ DPTR 二、填空題(每空1分,共30分) 1.一個完整的微機(jī)系統(tǒng)由 和 兩大部分組成。 2.8051 的引腳RST是____(IN腳還是OUT腳),當(dāng)其端出現(xiàn)____電平時,8051進(jìn)入復(fù)位狀態(tài)。8051一直維持這個值,直到RST腳收到____電平,8051才脫離復(fù)位狀態(tài),進(jìn)入程序運(yùn)行狀態(tài),從ROM H單元開始取指令并翻譯和執(zhí)行。 3.半導(dǎo)體存儲器分成兩大類 和 ,其中 具有易失性,常用于存儲 。
標(biāo)簽: 單片機(jī) 接口技術(shù) 試卷
上傳時間: 2015-01-03
上傳用戶:wfl_yy
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
LCS(最長公共子序列)問題可以簡單地描述如下: 一個給定序列的子序列是在該序列中刪去若干元素后得到的序列。給定兩個序列X和Y,當(dāng)另一序列Z既是X的子序列又是Y的子序列時,稱Z是序列X和Y的公共子序列。例如,若X={A,B,C,B,D,B,A},Y={B,D,C,A,B,A},則序列{B,C,A}是X和Y的一個公共子序列,但它不是X和Y的一個最長公共子序列。序列{B,C,B,A}也是X和Y的一個公共子序列,它的長度為4,而且它是X和Y的一個最長公共子序列,因?yàn)閄和Y沒有長度大于4的公共子序列。 最長公共子序列問題就是給定兩個序列X={x1,x2,...xm}和Y={y1,y2,...yn},找出X和Y的一個最長公共子序列。對于這個問題比較容易想到的算法是窮舉,對X的所有子序列,檢查它是否也是Y的子序列,從而確定它是否為X和Y的公共子序列,并且在檢查過程中記錄最長的公共子序列。X的所有子序列都檢查過后即可求出X和Y的最長公共子序列。X的每個子序列相應(yīng)于下標(biāo)集{1,2,...,m}的一個子集。因此,共有2^m個不同子序列,從而窮舉搜索法需要指數(shù)時間。
上傳時間: 2015-06-09
上傳用戶:氣溫達(dá)上千萬的
問題描述 序列Z=<B,C,D,B>是序列X=<A,B,C,B,D,A,B>的子序列,相應(yīng)的遞增下標(biāo)序列為<2,3,5,7>。 一般地,給定一個序列X=<x1,x2,…,xm>,則另一個序列Z=<z1,z2,…,zk>是X的子序列,是指存在一個嚴(yán)格遞增的下標(biāo)序列〈i1,i2,…,ik〉使得對于所有j=1,2,…,k使Z中第j個元素zj與X中第ij個元素相同。 給定2個序列X和Y,當(dāng)另一序列Z既是X的子序列又是Y的子序列時,稱Z是序列X和Y的公共子序列。 你的任務(wù)是:給定2個序列X、Y,求X和Y的最長公共子序列Z。
上傳時間: 2014-01-25
上傳用戶:netwolf
java寫的圍棋游戲小程序 開發(fā)思路 調(diào)用applet類作為父類。在init事件中調(diào)用Qipan類,作出panel,上加控制用控件。在paint事件里調(diào)用drawline函數(shù)畫棋盤,注冊鼠標(biāo)動作。鼠標(biāo)單擊位置上用drawoval畫出棋子, 事件處理過程 A。重新開始 B。選擇尺寸 C。悔棋事件 D。前進(jìn)事件 有三個文件Weiqi.java,Qizi.java,Qipan.java
標(biāo)簽: applet Qipan java init
上傳時間: 2014-01-07
上傳用戶:gyq
圖的深度遍歷,輸出結(jié)果為(紅色為鍵盤輸入的數(shù)據(jù),權(quán)值都置為1): 輸入頂點(diǎn)數(shù)和弧數(shù):8 9 輸入8個頂點(diǎn). 輸入頂點(diǎn)0:a 輸入頂點(diǎn)1:b 輸入頂點(diǎn)2:c 輸入頂點(diǎn)3:d 輸入頂點(diǎn)4:e 輸入頂點(diǎn)5:f 輸入頂點(diǎn)6:g 輸入頂點(diǎn)7:h 輸入9條弧. 輸入弧0:a b 1 輸入弧1:b d 1 輸入弧2:b e 1 輸入弧3:d h 1 輸入弧4:e h 1 輸入弧5:a c 1 輸入弧6:c f 1 輸入弧7:c g 1 輸入弧8:f g 1 深度優(yōu)先遍歷: a b d h e c f g 程序結(jié)束.
標(biāo)簽:
上傳時間: 2016-04-04
上傳用戶:lht618
System.out.print(s) System.out.println(t) System.out.print(u) System.out.println(v) System.out.print(a) System.out.print(b) System.out.print(c) System.out.println(d) x=0x5f20 y=0x5f35 z=0xffff System.out.print(x) System.out.print(y) System.out.println(z)
標(biāo)簽: System out println print
上傳時間: 2016-07-01
上傳用戶:日光微瀾
利用偉福 Lab2000P單片機(jī)實(shí)驗(yàn)儀上提供的顯示電路和鍵盤電路,做一個簡單的計(jì)算器。用十六進(jìn)制A鍵 =‘+’、B鍵 =‘-’、C鍵 = ‘x’、D鍵 = ‘/’、E鍵 = ‘=’、F鍵 = ‘C’。
標(biāo)簽: 2000P 2000 Lab 單片機(jī)
上傳時間: 2016-08-22
上傳用戶:ukuk
eCGUI 驅(qū)動構(gòu)造例子 只要驅(qū)動例子能運(yùn)行,eCGUI就能運(yùn)行。 eCGUI 核心與 驅(qū)動層是分離的,與操作系統(tǒng)無關(guān)的。 www.ecgui.com/bbs 1)安裝Borland C 3.1 到 d:\bc31 ,確認(rèn)bcc.exe在d:\bc31\bin 路徑下 2)運(yùn)行 drv.bat 完成編譯 如果其他平臺請配合,www.ecgui.com 提供的文檔,觀察例子代碼。
標(biāo)簽: eCGUI 驅(qū)動 運(yùn)行
上傳時間: 2016-12-15
上傳用戶:zmy123
RSA ( Rivest Shamir Adleman )is crypthograph system that used to give a secret information and digital signature . Its security based on Integer Factorization Problem (IFP). RSA uses an asymetric key. RSA was created by Rivest, Shamir, and Adleman in 1977. Every user have a pair of key, public key and private key. Public key (e) . You may choose any number for e with these requirements, 1< e <Æ (n), where Æ (n)= (p-1) (q-1) ( p and q are first-rate), gcd (e,Æ (n))=1 (gcd= greatest common divisor). Private key (d). d=(1/e) mod(Æ (n)) Encyption (C) . C=Mª mod(n), a = e (public key), n=pq Descryption (D) . D=C° mod(n), o = d (private key
標(biāo)簽: crypthograph information Adleman Rivest
上傳時間: 2017-09-01
上傳用戶:chfanjiang
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1