針對(duì)目前使用的RS232接口數(shù)字化B超鍵盤(pán)存在PC主機(jī)啟動(dòng)時(shí)不能設(shè)置BIOS,提出一種PS2鍵盤(pán)的設(shè)計(jì)方法?;赪78E052D單片機(jī),采用8通道串行A/D轉(zhuǎn)換器設(shè)計(jì)了8個(gè)TGC電位器信息采集電路,電位器位置信息以鍵盤(pán)掃描碼序列形式發(fā)送,正交編碼器信號(hào)通過(guò)XC9536XL轉(zhuǎn)換為單片機(jī)可接收的中斷信號(hào),軟件接收到中斷信息后等效處理成按鍵。結(jié)果表明,在滿足開(kāi)機(jī)可設(shè)置BIOS同時(shí),又可實(shí)現(xiàn)超聲特有功能,不需要專(zhuān)門(mén)設(shè)計(jì)驅(qū)動(dòng)程序,接口簡(jiǎn)單,成本低。
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.
4.asm…… 響鈴程序,輸入一個(gè)數(shù)字字符N,響鈴N次。(完成)ysk3.asm ……顯示一個(gè)星型倒三角。m1.asm ………編程將鍵盤(pán)輸入的8位無(wú)符號(hào)二進(jìn)制數(shù)轉(zhuǎn)化為十六進(jìn)制數(shù)和十進(jìn)制數(shù),并輸出結(jié)果form.asm ……采用子程序編程按以下三種格式(██,◣,◥)打印九九乘法表:(完成)char.asm ……小寫(xiě)字母a b c d ……x y z的ASCII碼分別為61H 62H 63H 64H……78H 79H 7AH, 而大寫(xiě)字母A B C D ….X Y Z的ASCII碼分別為41H 42H 43H 44H …58H 59H 5AH, 使用串處理指令編程從鍵盤(pán)輸入16個(gè)字符(大小寫(xiě)字母及其它字母均有), 存入以BUF1開(kāi)始的一片存儲(chǔ)區(qū)中,并將其傳送到以BUF2開(kāi)始的一片存儲(chǔ)區(qū)中, 在傳送是將其中的小寫(xiě)字母均改為大寫(xiě)字母,并將第一個(gè)小寫(xiě)字母在串中的位置 (距串頭BUF1的相對(duì)位移量)以十六進(jìn)制形式輸出。(完成)
See Appendix B for a description of the programs included
on this companion disk. RESOURCE.WRI identifies other books
and resources for Internet programming. WEBHELP.HLP contains
an introduction to the World Wide Web. TCPMAN.HLP provides
detailed instructions to help you use the Trumpet Winsock
included on this disk. Use the Program Manager s File menu
Run option to execute the SETUP.EXE program found on this
disk. SETUP.EXE will install the programs on your hard drive
and create an Internet Programming group window.
Internet編程技術(shù) [配套程序]
[涉及平臺(tái)] VC
[作者] void
[文件大小] 1032K