-
針對目前使用的RS232接口數(shù)字化B超鍵盤存在PC主機(jī)啟動時(shí)不能設(shè)置BIOS,提出一種PS2鍵盤的設(shè)計(jì)方法。基于W78E052D單片機(jī),采用8通道串行A/D轉(zhuǎn)換器設(shè)計(jì)了8個(gè)TGC電位器信息采集電路,電位器位置信息以鍵盤掃描碼序列形式發(fā)送,正交編碼器信號通過XC9536XL轉(zhuǎn)換為單片機(jī)可接收的中斷信號,軟件接收到中斷信息后等效處理成按鍵。結(jié)果表明,在滿足開機(jī)可設(shè)置BIOS同時(shí),又可實(shí)現(xiàn)超聲特有功能,不需要專門設(shè)計(jì)驅(qū)動程序,接口簡單,成本低。
Abstract: Aiming at the problem of the digital ultrasonic diagnostic imaging system keyboard with RS232 interface currently used couldn?蒺t set the BIOS when the PC boot, this paper proposed a design method of PS2 keyboards. Based on W78E052D microcontroller,designed eight TGC potentiometers information acquisition circuit with 8-channel serial A/D converter, potentiometer position information sent out with keyboard scan code sequentially.The control circuit based on XC9536 CPLD is used for converting the mechanical actions of the encoders into the signals that can be identified by the MCU, software received interrupt information and equivalently treatmented as key. The results show that the BIOS can be set to meet the boot, ultrasound specific functionality can be achieved at the same time, it does not require specially designed driver,the interface is simple and low cost.
標(biāo)簽:
單片機(jī)
B超
數(shù)字化
鍵盤設(shè)計(jì)
上傳時(shí)間:
2013-10-10
上傳用戶:asdfasdfd
-
98年全國大學(xué)生數(shù)學(xué)建模競賽B題“水災(zāi)巡視問題”,是一個(gè)推銷員問題,本題有53個(gè)點(diǎn),所有可能性大約為exp(53),目前沒有好方法求出精確解,既然求不出精確解,我們使用模擬退火法求出一個(gè)較優(yōu)解,將所有結(jié)點(diǎn)編號為1到53,1到53的排列就是系統(tǒng)的結(jié)構(gòu),結(jié)構(gòu)的變化規(guī)則是:從1到53的排列中隨機(jī)選取一個(gè)子排列,將其反轉(zhuǎn)或?qū)⑵湟浦亮硪惶?能量E自然是路徑總長度。具體算法描述如下:步1: 設(shè)定初始溫度T,給定一個(gè)初始的巡視路線。步2 :步3 --8循環(huán)K次步3:步 4--7循環(huán)M次步4:隨機(jī)選擇路線的一段步5:隨機(jī)確定將選定的路線反轉(zhuǎn)或移動,即兩種調(diào)整方式:反轉(zhuǎn)、移動。步6:計(jì)算代價(jià)D,即調(diào)整前后的總路程的長度之差步7:按照如下規(guī)則確定是否做調(diào)整:如果D0,則按照EXP(-D/T)的概率進(jìn)行調(diào)整步8:T*0.9-->T,降溫
標(biāo)簽:
大學(xué)生
數(shù)學(xué)建模
巡視
競賽
上傳時(shí)間:
2015-03-14
上傳用戶:himbly
-
Bing is a point-to-point bandwidth measurement tool (hence the b ), based on ping. Bing determines the real (raw, as opposed to available or average) throughput on a link by measuring ICMP echo requests roundtrip times for different packet sizes for each end of the link
標(biāo)簽:
Bing
point-to-point
measurement
determines
上傳時(shí)間:
2015-09-15
上傳用戶:lgnf
-
生成Bipartite Graphs
./distributions -u -m 1 -M 10 -n 100 -s 500 > top_distrib
./distributions -p -2.2 -m 1 -M 100 -n 200 -s 500 > bottom_distrib
./random_bipartite -t top_distrib -b bottom_distrib > bn_test
標(biāo)簽:
distributions
top_distrib
Bipartite
Graphs
上傳時(shí)間:
2015-10-02
上傳用戶:yy541071797
-
假定已經(jīng)有許多應(yīng)用采用了程序1 - 1 5中所定義的C u r r e n c y類,現(xiàn)在我們想要對C u r r e n c y類
的描述進(jìn)行修改,使其應(yīng)用頻率最高的兩個(gè)函數(shù)A d d和I n c r e m e n t可以運(yùn)行得更快,從而提高應(yīng)
用程序的執(zhí)行速度。由于用戶僅能通過p u b l i c部分所提供的接口與C u r r e n c y類進(jìn)行交互,
標(biāo)簽:
程序
定義
上傳時(shí)間:
2015-10-11
上傳用戶:BIBI
-
代入法的啟發(fā)示搜索
我的代碼實(shí)現(xiàn)是:按照自然語言各字母出現(xiàn)頻率的大小從高到低(已經(jīng)有人作國統(tǒng)計(jì)分析了)先生成一張字母出現(xiàn)頻率統(tǒng)計(jì)表(A)--------(e),(t,a,o,i,n,s,h,r),(d,l),(c,u,m,w,f,g,y,p,b),(v,k,j,x,q,z)
,再對密文字母計(jì)算頻率,并按頻率從高到低生成一張輸入密文字母的統(tǒng)計(jì)表(B),通過兩張表的對應(yīng)關(guān)系,不斷用A中的字母去替換B中的字母,搜索不成功時(shí)就回退,在這里回朔是一個(gè)關(guān)鍵。
標(biāo)簽:
字母
頻率
搜索
代碼
上傳時(shí)間:
2015-10-24
上傳用戶:wanqunsheng
-
Floyd-Warshall算法描述
1)適用范圍:
a)APSP(All Pairs Shortest Paths)
b)稠密圖效果最佳
c)邊權(quán)可正可負(fù)
2)算法描述:
a)初始化:dis[u,v]=w[u,v]
b)For k:=1 to n
For i:=1 to n
For j:=1 to n
If dis[i,j]>dis[i,k]+dis[k,j] Then
Dis[I,j]:=dis[I,k]+dis[k,j]
c)算法結(jié)束:dis即為所有點(diǎn)對的最短路徑矩陣
3)算法小結(jié):此算法簡單有效,由于三重循環(huán)結(jié)構(gòu)緊湊,對于稠密圖,效率要高于執(zhí)行|V|次Dijkstra算法。時(shí)間復(fù)雜度O(n^3)。
考慮下列變形:如(I,j)∈E則dis[I,j]初始為1,else初始為0,這樣的Floyd算法最后的最短路徑矩陣即成為一個(gè)判斷I,j是否有通路的矩陣。更簡單的,我們可以把dis設(shè)成boolean類型,則每次可以用“dis[I,j]:=dis[I,j]or(dis[I,k]and dis[k,j])”來代替算法描述中的藍(lán)色部分,可以更直觀地得到I,j的連通情況。
標(biāo)簽:
Floyd-Warshall
Shortest
Pairs
Paths
上傳時(shí)間:
2013-12-01
上傳用戶:dyctj
-
%radon transform
clear all
%
N=800
n=1:N
fs=200
t=n/fs
x1=exp(j*2*pi*(5*t+0.5*5*t.^2))
x2=exp(j*2*pi*(5*t+0.5*15*t.^2))
x=x1+x2
%N=length(x)
% ambifunb(x )
%*****************************************RAT
naf=ambifunb(x)
htl(abs(naf))
% [wh,rho,theta]=htl(abs(naf))
colormap([0,0,0])
% xlabel( 極半徑 )
% ylabel( 角度 )
%**************************************%找出峰值點(diǎn)的坐標(biāo),計(jì)算初始頻率和調(diào)頻斜率(正確)
%找出峰值點(diǎn)的坐標(biāo)
b=max(max(wh))
[u,a]=find(wh>=0.8*b)
標(biāo)簽:
transform
radon
clear
fs
上傳時(shí)間:
2014-10-27
上傳用戶:Yukiseop
-
sourceforge歷史版本完整下載: http://sourceforge.net/project/showfiles.php?group_id=202044 提供了基于b樹索引算法的文件數(shù)據(jù)數(shù)據(jù)庫模塊詳見storage/目錄下面的 btree.c與pager.c container目錄為常用的容器實(shí)現(xiàn),如果rbtree avltree map heap list vector hashtable deque T樹 B樹, test目錄為測試程序代碼經(jīng)過初步測試,比較穩(wěn)定。 os_api:裝一些操作系統(tǒng)相關(guān)的接口函數(shù)。已完成event mutex sem thread pipe相關(guān)的封裝 advance_container:提供優(yōu)先級消息隊(duì)列,普通消息隊(duì)列,定時(shí)器容器。 frame:目前提供了listerner(linux下版本,模仿ace的反應(yīng)器)定時(shí)器 algorithm:補(bǔ)充了堆排序 與快速排序 所有代碼均已在windows linux與uclinux + arm44b0平臺下測試 歡迎交流 msn:lsccsl@163.net mail:lsccsl@tom.com
標(biāo)簽:
sourceforge
showfiles
group_id
project
上傳時(shí)間:
2016-07-16
上傳用戶:lili123
-
Program main BIOS image |
| /B - Program Boot Block |
| /N - Program NVRAM |
| /C - Destroy CMOS checksum |
| /E - Program Embedded Controller Block |
| /K - Program all non-critical blocks |
| /Kn - Program n th non-critical block only(n=0-7) |
| /Q - Silent execution |
| /REBOOT - Reboot after programming |
| /X - Don t Check ROM ID |
| /S - Display current system s ROMID |
| /Ln - Load CMOS defaults
標(biāo)簽:
Program
Destroy
Block
NVRAM
上傳時(shí)間:
2016-07-26
上傳用戶:wfl_yy