ps2 interface ask pic as slave, it is really bad idea and occupied INT that brings lots trouble later. ----- Original Message ----- From: "Maarten Hofman" To: "Microcontroller discussion list - Public." Sent: Wednesday, November 02, 2005 3:20 PM Subject: Re: [PIC]: Can I use PIC SPI interfce for PS2 keyboard? > > my main question is Can I use PIC's hardware SPI interface for keyboard or > > mouse. I like PIC18F parts. any info will appreciate. > > It would be a waste of a good SPI interface... The keyboard/mouse > interface runs at an incredibly low clock speed (rarely faster than > 1200 bps). It is very simple to attach the clock to an interrupt on > change enabled pin, and just shift the bits into a register as they > come in. The big advantage of the PS/2 interface is that the keyboard > and mouse generate their own clock, so you don't really need to do any > clock stuff on the PIC itself... > > Greetings, > Maarten Hofman. > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist