文件名称:MSP430F149_PS2_keyboard_SN74LVC4245

  • 所属分类:
  • 单片机(51,AVR,MSP430等)
  • 资源属性:
  • [C/C++] [源码]
  • 上传时间:
  • 2012-11-26
  • 文件大小:
  • 36kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • skyw*****
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

本程序使用MSP430F149驱动PS2接口的PC键盘,使用了SN74LVC4245用作电平转换;PS2 端口使用了标准的六芯插座,可以接收来自标准键盘、鼠标的数据。由于键盘、鼠标都是 5V 供电系统,而 MSP430F149 只能工作在 3.3V,所以需要在两者之间进行电平转换。根据键盘的工作原理,MCU只要接收键盘发送过来的时钟信号和数据信号,然后对数据信号进行解码就可以了。为此我们利用了电平转换电路的两根数据线,让键盘的时钟线 CLK 连接SN74LVC4245 的A8 端口,键盘的数据线DATA连接SN74LVC4245 的A7 端口-This procedure using the MSP430F149 the PC interface driver PS2 keyboard, used for SN74LVC4245 level conversion PS2 port using a standard six-core socket, you can receive from the standard keyboard and mouse data. As the keyboard, mouse are 5V power supply system, while the MSP430F149 can only work in 3.3V, so it is necessary to carry out between the two-level conversion. According to the working principle of the keyboard, MCU as long as the receiver from the keyboard to send the clock signal and data signals, data signals and then decode it. To this end, we made use of level-shifting circuit of two data lines, so that the keyboard clock line CLK of the A8 connection SN74LVC4245 port, keyboard data line DATA port to connect SN74LVC4245 the A7
(系统自动生成,下载前可以参看下载内容)

下载文件列表

MSP430F149_PS2_keyboard

.......................\BoardConfig.h

.......................\code.h

.......................\cry1602.c

.......................\cry1602.h

.......................\Debug

.......................\gdata.h

.......................\Keyboard.c

.......................\Keyboard.h

.......................\main.c

.......................\P1.dep

.......................\P1.ewd

.......................\P1.ewp

.......................\P1.eww

.......................\settings

.......................\........\P1.cspy.bat

.......................\........\P1.dbgdt

.......................\........\P1.dni

.......................\........\P1.wsdt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org