編程使小鍵盤的數字鍵1,2,3,4,5,6,7作為電子琴按鍵,輸入對應的七個音階,通過實驗箱的喇叭發出聲音,并通過七段數碼管顯示輸入音階;若小鍵盤輸入“R”則返回DOS,結束程序。
上傳時間: 2014-01-12
上傳用戶:saharawalker
WinCE5.0下Serial的驅動,for pxa27x,3線制,5線制,7線制的serial都行。
上傳時間: 2013-12-13
上傳用戶:xz85592677
進制轉換的一個很好的函數。可在16進制內自由轉換,也可創新地使用5、6、7等進制格式。經過簡單改造后可使用最大36進制的形式。是編程人員的一個好東東。
上傳時間: 2013-12-25
上傳用戶:ayfeixiao
一:需求分析 1. 問題描述 魔王總是使用自己的一種非常精練而抽象的語言講話,沒人能聽懂,但他的語言是可逐步解釋成人能聽懂的語言,因為他的語言是由以下兩種形式的規則由人的語言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在這兩種形式中,從左到右均表示解釋.試寫一個魔王語言的解釋系統,把 他的話解釋成人能聽得懂的話. 2. 基本要求: 用下述兩條具體規則和上述規則形式(2)實現.設大寫字母表示魔王語言的詞匯 小寫字母表示人的語言的詞匯 希臘字母表示可以用大寫字母或小寫字母代換的變量.魔王語言可含人的詞匯. (1) B --> tAdA (2) A --> sae 3. 測試數據: B(ehnxgz)B 解釋成 tsaedsaeezegexenehetsaedsae若將小寫字母與漢字建立下表所示的對應關系,則魔王說的話是:"天上一只鵝地上一只鵝鵝追鵝趕鵝下鵝蛋鵝恨鵝天上一只鵝地上一只鵝". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鵝 | 追 | 趕 | 下 | 蛋 | 恨 |
上傳時間: 2014-12-02
上傳用戶:jkhjkh1982
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.
標簽: represented integers group items
上傳時間: 2016-01-17
上傳用戶:jeffery
The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).
標簽: converts Toolbox complex logical
上傳時間: 2016-02-12
上傳用戶:a673761058
漢字液晶子程 液晶屏分為4行*12列漢字,全部使用模擬接口方式。 TGLCMLIMIT64A接口程序(模擬方式) 連線圖: *LCM---89C52* *LCM---89C52* *LCM-------89C52* *LCM----------89C52* * *DB0---P0.0* *DB4---P0.4* *D/I-------P2.6* *CS1----------P2.4* * *DB1---P0.1* *DB5---P0.5* *R/W-------P2.7* *CS2----------P2.5* * *DB2---P0.2* *DB6---P0.6* *RST--------VCC* *CS3----------P3.2* * *DB3---P0.3* *DB7---P0.7* *E---------P2.3* 注:89C52的晶振頻率為12MHz
上傳時間: 2016-03-16
上傳用戶:wab1981
設計一個智力競賽搶答器,可同時供8名選手或8個代表隊參加比賽,他們的編號分別是0、1、2、3、4、5、6、7,各用一個搶答按鈕,按鈕的編號與選手的編號相對應,分別是So、S1、S2、S3、S4、S5、S6、S7。 ② 給節目主持人設置一個控制開關,用來控制系統的清零(編號顯示數碼管滅燈)和搶答的開始。 ③ 搶答器具有數據鎖存和顯示的功能。搶答開始后,若有選手按動搶答按鈕,編號立即鎖存,并在LED數碼管上顯示出選手的編號,同時蜂鳴器給出音響提示。此外,要封鎖輸入電路,禁止其他選手搶答。優先搶答選手的編號一直保持到主持人將系統清零為止。 • 擴展功能
上傳時間: 2016-04-27
上傳用戶:sdq_123
統計數字問題: 一本書的頁碼從自然數1開始順序編碼直到自然數n。 書的頁碼按照通常的習慣編排, 每個頁碼都不含多余的前導數字0。例如第6頁用數字6表示,而不是006,06等。數字技術問 題要求對于給定的書的總頁碼n,計算出書的全部頁碼中分別用到多少數字0,1,2,3,4,5,6,7,8?
上傳時間: 2014-01-22
上傳用戶:417313137
仿真標準串口,用于升級原串口外圍設備,或者通過USB 增加額外串口。 ● 計算機端Windows 操作系統下的串口應用程序完全兼容,無需修改。 ● 硬件全雙工串口,內置收發緩沖區,支持通訊波特率50bps~2Mbps。 ● 支持5、6、7 或者8 個數據位,支持奇校驗、偶校驗、空白、標志以及無校驗。 ● 支持串口發送使能、串口接收就緒等傳輸速率控制信號和MODEM 聯絡信號。 異步串口/RS232/RS485/RS422 轉換并口打印機為USB 打印機 EPP 并口和MEM 并口 常用的2 線和4 線同步串口 DD+ 計算機 或者 其它 USB 主機 CH341 轉接芯片 CH341 中文手冊(一) 2 ● 通過外加電平轉換器件,提供RS232、RS485、RS422 等接口。 ● 支持以標準的串口通訊方式間接地訪問CH341 外掛的串行EEPROM 存儲器。
上傳時間: 2013-11-29
上傳用戶:15736969615