Search the Community
Showing results for tags 'ps/2'.
-
Hi, I'm having a problem that the source may come from TI's USB HID API. Need USB experts. I'm trying to interface my TrackPoint (PS/2 mouse) with the MSP430F5510. Without calling USBHID_sendReport(), PS/2 communication between the MSP430 and the mouse works well. When called, the communication stops. The PS/2 code is posted in the code vault: http://forum.43oh.com/topic/5124-ps2-mouse-for-any-msp430/#entry45187. case ST_ENUM_ACTIVE: PS2_setMode(RESET_MODE); PS2_setMode(REMOTE_MODE); Trackpoint_setSensitivity(0xC0); while(1) { ps2Data = PS2_getData(); //ps2Data with type PS2DATA_t
-
Strangely enough, there aren't a lot of PS/2 mouse codes available for MSP430. The following code allows you to communicate with your PS/2 mouse by remote mode and stream mode (require interrupts). TrackPoint is a mouse module used in ThinkPad keyboards. It uses the PS/2 protocol with some proprietary commands. Keyboards are pretty much the same as mouse, only their reports are simpler. PS2.h /* * PS2.h * * Created on: 14/11/2013 * Author: CONG (rampADC) */ #ifndef PS2_H_ #define PS2_H_ #include "msp430.h" #include "stdint.h" //4MHz XT2 #define delay_us(x) __delay_cycles(x