資源簡介
51單片機 模擬ps2鍵盤的程序,,可以和電腦的PS2口通訊
代碼片段和文件信息
#include?
extern?void?ProcessPS2(void);?
extern?void?PS2Init(void);
?
void?main(void)?
{?
????????//往PC上發(fā)按鍵使用OnPS2SendChar();?
????????//OnPS2SendChar(0x15);//Q//發(fā)送通碼?
????????//OnPS2SendChar(0xF0);?
????????//OnPS2SendChar(0x15);//Q//發(fā)送斷碼?
????????PS2Init();?
????????while(1)?
????????{?
????????????????ProcessPS2();//開機應答使電腦能識別到鍵盤?
????????????????//other?code?
????????}?
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????511??2008-05-22?08:52??PS2.H
?????文件?????112964??2005-06-07?17:54??AT鍵盤接口資料.pdf
?????文件????????965??2008-05-20?10:47??Delay.asm
?????文件???????4979??2008-05-22?08:53??PS2.C
-----------?---------??----------?-----??----
???????????????119419????????????????????4
評論
共有 條評論