Search the Community
Showing results for tags 'keyboard'.
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
i have been sucessful(somewhat) in interfacing a PS2 keyboard with MSP430. usually for about ~25 keystrokes it works perfectly. after that parity error occurs in data and data after the corrupt-data is also corrupt. im supply keyboard 5V from external source and using POT to convert 5V to 3V. communication with keyboard is at 20-25Khz and MSP430 is running at 16Mhz. thing i tried (and didnt worked :-( ): tried another keyboard. circular queue to store temp data and then timer A1 to extract and decode. note: if im able to get first n data's then why is their a problem after that. im having 4