文件名称:armok01155791
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:19.48kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
小弟依照别的人程序改造了一个PS/2鼠标的接口程序,用Codevision写的,用的MCU是Tiny2313,PA0和PA1接鼠标的数据线和时钟线,PB口接上8粒LED灯,用来显示接收来鼠标发送过来的数据。我和程序默认显示的是第一个字节数据。这个程序有时会有点问题,不知道怎么搞的,如果我显示的第二或第三,或第四字节,有时自己会变成第一字节,呵呵,可能是一个BUG吧。还有一个问题是,听别人说这个程序会挑鼠标,如果能和一个鼠标通讯,换成另一种鼠标就无法通讯。估计是mouse_send()这个函数有点问题,导致在鼠标初始化时无法进入3D滚轮模式(4BYTE),而只能工作在2D模式(3BYTE),而主程序里却在按3D的模式来接收数据。请大家来改进。 -Brother in accordance with the other one program to a ps 2 the interface program codevision, the mcu s tiny2313 pa0 pa1, and then the data and the clock line to the pb to 8 of the light, led to display received to the sending of data and programs. i acknowledge that is the first byte data. this process can sometimes be something wrong, don t know what s wrong if i shows the second or third or fourth byte, and sometimes she would become the first byte, this maybe is a bug. Another problem is, to say that this process will choose the mouse, and a mouse to the other communications, a mouse can t communicate. maybe the mouse enormous send () this function is a little problem in the initializing unable to enter the 3d wheel mode ( 4byte ), but we can work in 2d mode ( 3byte ), and in the main program in a 3d patterns to receive the data. i ask everyone to improve.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
mouse.c
1111.bmp
1111.bmp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.