• 大小: 212KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-07
  • 语言: 其他
  • 标签: 51  ps2  

资源简介

51单片机 模拟ps2键盘的程序,,可以和电脑的PS2口通讯

资源截图

代码片段和文件信息

#include 

extern void ProcessPS2(void); 
extern void PS2Init(void);
 
void main(void) 

        //往PC上发按键使用OnPS2SendChar(); 
        //OnPS2SendChar(0x15);//Q//发送通码 

        //OnPS2SendChar(0xF0); 
        //OnPS2SendChar(0x15);//Q//发送断码 
        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


评论

共有 条评论