MSP430F149_PS2_keyboard_SN74LVC4245

所属分类:单片机开发
开发工具:C/C++
文件大小:36KB
下载次数:40
上传日期:2008-05-23 16:45:02
上 传 者skywalker_hdu
说明:  本程序使用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 (689, 2008-03-05)
MSP430F149_PS2_keyboard\code.h (2248, 2007-12-31)
MSP430F149_PS2_keyboard\cry1602.c (4420, 2008-03-05)
MSP430F149_PS2_keyboard\cry1602.h (401, 2007-12-29)
MSP430F149_PS2_keyboard\gdata.h (391, 2007-12-31)
MSP430F149_PS2_keyboard\Keyboard.c (3519, 2008-03-05)
MSP430F149_PS2_keyboard\Keyboard.h (124, 2007-12-31)
MSP430F149_PS2_keyboard\main.c (4676, 2008-03-25)
MSP430F149_PS2_keyboard\P1.dep (3595, 2008-03-25)
MSP430F149_PS2_keyboard\P1.ewd (12489, 2008-03-22)
MSP430F149_PS2_keyboard\P1.ewp (43826, 2008-03-22)
MSP430F149_PS2_keyboard\P1.eww (156, 2008-03-22)
MSP430F149_PS2_keyboard\settings\P1.cspy.bat (2506, 2008-03-25)
MSP430F149_PS2_keyboard\settings\P1.dbgdt (3880, 2008-03-25)
MSP430F149_PS2_keyboard\settings\P1.dni (925, 2008-03-25)
MSP430F149_PS2_keyboard\settings\P1.wsdt (2931, 2008-03-25)
MSP430F149_PS2_keyboard\Debug (0, 2008-05-23)
MSP430F149_PS2_keyboard\settings (0, 2008-05-23)
MSP430F149_PS2_keyboard (0, 2008-05-23)

近期下载者

相关文件


收藏者