This firmware translates a PS/2 mouse to a USB mouse. The translator firmware is entirely interrupt driven (with the exception of sending the data via USB to the host.) An interrupt is generated when the PS/2 start bit is received, at which time the firmware will Begin its receive routine. In addition to this interrupt, every 168ms a timer overflow interrupts the main program and implements one state of the mouse state machine. This state machine handles sending bytes to and translating bytes received from the PS/2 mouse automatically. All of this is done in the background while the main program runs in the foreground. The only operation that the main program implements is sending mouse data to the PC via USB.
標簽: firmware mouse translates translator
上傳時間: 2015-04-26
上傳用戶:cuiyashuo
DELPHI basicCtrl+NUM 直接將光標跳到NUM處,NUM是用Ctrl+Shift+NUM設置的標號。 NUM不能用小鍵盤。 Ctrl+Home 將光標移至文件頭。 Ctrl+End 將光標移至文件尾。 Ctrl+B Buffer List窗口。 Ctrl+I 同Tab鍵。 Ctrl+M 同Enter鍵。 Ctrl+N 同Enter鍵,但光標位置保持不變。 Ctrl+T 刪除光標右邊的一個單詞。 Ctrl+Y 刪除光標所在行。 Ctrl+Shift+↑ 光標在函數體內時,將光標快速移至當前函數聲明處。 Ctrl+Shift+↓ 光標在函數聲明行時,將光標快速移至函數定義處。 Ctrl+Shift+C 聲明一個過程或函數后,直接生成過程或函數的名稱、Begin、end Ctrl+Shift+E 光標在Edit窗口和Explorer窗口間切換。 Ctrl+Shift+G 插入GUID。 Ctrl+Shift+J 彈出Delphi語句提示窗口,選擇所需語句將自動完成一條語句。 Ctrl+Shift+T 在光標行加入To-Do注釋。 Ctrl+Shift+Y 刪除光標之后至本行末尾之間的文本。 Ctrl+F3 Call Stack窗口。 Ctrl+F4 等于File菜單中的Close項。
上傳時間: 2014-11-26
上傳用戶:kr770906
program kehuji uses Forms, Unit1 in ..\zxc\Unit1.pas {Form1}, Unit2 in ..\zxc\Unit2.pas {Form2}, Unit3 in ..\zxc\Unit3.pas {Form3}, Unit4 in ..\zxc\Unit4.pas {Form4} // Unit3 in C:\Program Files\Borland\Delphi7\Projects\Unit3.pas {Form3}, // Unit4 in C:\Program Files\Borland\Delphi7\Projects\Unit4.pas {Form4} {$R *.res} Begin Application.Initialize Application.CreateForm(TForm1, Form1) Application.CreateForm(TForm2, Form2) Application.CreateForm(TForm3, Form3) Application.CreateForm(TForm4, Form4) // Application.CreateForm(TForm3, Form3) // Application.CreateForm(TForm4, Form4) Application.Run end.
標簽: zxcUnit pas program kehuji
上傳時間: 2014-01-16
上傳用戶:jing911003
K3:--- P1.6 K4:--- P1.7 BEEP:--- P3.7 K3 --- 控制按鍵 K4 --- 清零按鍵 開機顯示: SECOND-CLOCK 0 TIME 00:00:00:00 K3 --- 控制按鍵: 第一次按下時,開始計時。 顯示 Begin COUNT 1 TIME 00:00:01:88 第二次按下時,暫停計時。 顯示 PAUST COUNT 2 TIME 00:00:01:88 第三次按下時,累計計時。 顯示 Begin COUNT 3 TIME 00:08:08:88 第四次按下時,暫停計時。 顯示 PAUST COUNT 4 TIME 00:08:08:88 K4 --- 清零按鍵: 在任何狀態下,按一下K4,均可清零。 顯示 SECOND-CLOCK 0 TIME 00:00:00:00 0,1,2,3,4 表示按下K3鍵的次數。
標簽: SECOND-CLOCK K3 BEEP K4
上傳時間: 2014-01-14
上傳用戶:515414293
人民幣大寫金額轉換程序(修正版v0.0.3) =================================== 1.使用方法: ------------- 將Cash_RMB.dcu放入Delphi安裝目錄下的Lib中,在uses中加入Cash_RMB, 即可引用CashRMB方法. function CashRMB(CashAmount: Double): String 如: procedure TForm1.Button1Click(Sender: TObject) Begin QRLabel1.Caption := CashRMB(Table1.FieldByName( 金額 ).AsFloat) end 結果將傳回人民幣金額大寫字符串. 如果 CashAmount = 0 或數值溢出(超出萬億位),結果返回空串. 2.說明: -------- A.本轉換程序最大程度只支持到萬億元(位)的金額數值轉換操作.如果你的 轉換數值超出此極限,你可以在調用前先行判斷數據的合法性,如果沒有作預 先判斷,轉換過程中將引發本單元中自帶的錯誤處理例程. b.該轉換結果符合標準金額大寫書寫格式,零角零分等字樣不存在于最終的 轉換結果中. c.本轉換程序自帶數據溢出等數據非法及轉換錯誤等處理例程. d.本程序適用于32位的Delphi版本.
上傳時間: 2013-12-31
上傳用戶:hebmuljb
1. PL/0 語言介紹 ●PL/0 程序設計語言是一個較簡單的語言,它以賦值語句為基礎,構造概念有順序、條件和重復(循環)三種。PL/0 有子程序概念,包括過程定義(可以嵌套)與調用且有局部變量說明。PL/0語言編譯程序采用以語法分析為核心、一遍掃描的編譯方法。詞法分析和代碼生成作為獨立的子程序供語法分析程序調用。語法分析的同時,提供了出錯報告和出錯恢復的功能。在源程序沒有錯誤編譯通過的情況下,調用類PCODE解釋程序解釋執行生成的類PCODE代碼。 ●保留字(關鍵字):所謂保留字是指在Pascal語言中具有特定的含義。標準Pascal語言中的保留字一共有35個,Turbo Pascal語言一共有51個。下面是Pascal語言的保留字:AND,ARRAY,Begin,CASE,CONST,DIV,DO,DOWNTO,ELSE,END,FILE,FOR,FUNTION,GOTO,IF,IN,LABEL,MOD,NIL,NOT,OF,OR,PACKED,PROCEDURE,PROGRAM,RECORD,REPEAT,SET,THEN,TO,TYPE,UNTIL,VAR,WHILE,WITH,EXPORTS,SHR,STRING,ASM,OBJECT,UNIT,CONSTRUCTOR,IMPLEMENTATION,DESTRUCTOR,USES,INHERITED,INLINE,INTERFACE,LIBRARY,XOR,SHL
上傳時間: 2015-07-17
上傳用戶:zm7516678
請設計程序,使其實現以秒計時的功能。首先定義一個watch類,它有兩個私有變量Begin、end分別表示開始時間、結束時間,有成員函數start()、stop()、show()分別用來設置開始時間、結束時間、顯示持續時間。
標簽: 設計程序
上傳時間: 2013-12-12
上傳用戶:2467478207
From the Publisher Focus on 2D in Direct3D? teaches you all of the tools and tips you ll need to dive right in and Begin creating your own games. If you have some knowledge of C or C++ and have been searching for a guide that will take your 2D programming into the third dimension, then search no more! In this book you ll learn the skills you ll need to move from the 2D API to Direct3D. Written from the point of view of a 2D programmer, Focus on 2D in Direct3D presents the fundamentals of the Direct3D API in an easy-to-use-and-understand format. Get ready to jump into the world of Direct3D!
上傳時間: 2015-09-01
上傳用戶:ve3344
基于Verilog-HDL的硬件電路的實現 9.6 脈沖高電平和低電平持續時間的測量與顯示 9.6.1 脈沖高電平和低電平持續時間測量的工作原理 9.6.2 高低電平持續時間測量模塊的設計與實現 9.6.3 改進型高低電平持續時間測量模塊的設計與實現 9.6.4 Begin聲明語句的使用方法 9.6.5 initial語句和always語句的使用方法 9.6.6 時標信號發生模塊的設計與實現 9.6.7 脈沖高低電平持續時間測量的Verilog-HDL描述 9.6.8 脈沖高低電平持續時間測量的硬件實現
標簽: Verilog-HDL 低電平 9.6 時間測量
上傳時間: 2013-11-30
上傳用戶:chenlong
This a small hack I wrote to bypass the "No previous installation!" error of Microchip s C18 Upgrade. Simply run C18Fake and select your C18 installation directory (create if necessary) and click Save button. A "fake" file will now be created into that directory, and this will fool the Upgrade into thinking you already have a former legit installation. After that you run the C18 Upgrade setup and select the same directory you created/selected before. Your installation will now Begin installing the full C18 package.
標簽: installation Microchip previous Upgrade
上傳時間: 2014-01-21
上傳用戶:zhuyibin