单片机制作PC机键盘问题

apple0731   2007-10-26 21:44 楼主
PC机上电后是不是要按如下顺序完成命令!但第一条中键盘向PC机发送0xAA命令是在什么时候发送,而且这些都要逐个发吗?
Keyboard: AA Self-test passed ;Keyboard controller init
Host: ED Set/Reset Status Indicators
Keyboard: FA Acknowledge
Host: 00 Turn off all LEDs
Keyboard: FA Acknowledge
Host: F2 Read ID
Keyboard: FA Acknowledge
Keyboard: AB First byte of ID
Host: ED Set/Reset Status Indicators ;BIOS init
Keyboard: FA Acknowledge
Host: 02 Turn on Num Lock LED
Keyboard: FA Acknowledge
Host: F3 Set Typematic Rate/Delay ;Windows init
Keyboard: FA Acknowledge
Host: 20 500 ms / 30.0 reports/sec
Keyboard: FA Acknowledge
Host: F4 Enable
Keyboard: FA Acknowledge
Host: F3 Set Typematic Rate/delay
Keyboard: FA Acknowledge
Host: 00 250 ms / 30.0 reports/sec
Keyboard: FA Acknowledge

回复评论 (4)

关注 接分
点赞  2008-5-1 19:44
是PS/2键盘吗?用的什么单片机啊?
个人认为只要检测到PC机没有抑制通讯,就可以向PC机发送0xAA命令。
LZ可以试试。
点赞  2008-5-3 14:02
简单点做法:
上电后500 毫秒左右发送0xAA 0x00
点赞  2008-5-3 18:19
严格点要按时序接受数据检测  到主机的0xff 后响应  0xfa,0xaa
点赞  2008-5-3 18:22
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复