13.07.2015 Views

Designing a USB Keyboard and PS/2® Mouse Combination Device ...

Designing a USB Keyboard and PS/2® Mouse Combination Device ...

Designing a USB Keyboard and PS/2® Mouse Combination Device ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Designing</strong> a <strong>USB</strong> <strong>Keyboard</strong> <strong>and</strong> <strong>PS</strong>/2 <strong>Combination</strong> <strong>Device</strong>ConclusionThe two main enabling factors of the proliferation of the <strong>USB</strong>devices are cost <strong>and</strong> functionality. The CY7C63413 meetsboth requirements by integrating the <strong>USB</strong> SIE <strong>and</strong> multi-functionI/Os with a <strong>USB</strong> optimized RISC core in a low-cost part.In this application note, the CY7C63413 <strong>USB</strong> microcontrolleris used to implement a <strong>USB</strong> keyboard <strong>and</strong> <strong>PS</strong>/2 mouse combinationdevice. The <strong>PS</strong>/2 interface, fully implemented in firmware,preserves the use of a legacy <strong>PS</strong>/2 mouse without anyadditional cost.1 ms ISRClear Watchdog Timer3 ms ofbus inactivity?NoYesSave GPIO PortSettingsWrite ‘0’ to <strong>Keyboard</strong>Column Port BitsEnable GPIO Interrupton Port 2 <strong>and</strong> 3Set the <strong>PS</strong>/2 <strong>Mouse</strong>to Stream ModeGo SuspendRESUMERestore GPIO PortSettingsDisable GPIO Interrupton Port 2Has 12 mspast?Yes<strong>Keyboard</strong> DebounceFIFO incrementNoRestore <strong>PS</strong>/2 <strong>Mouse</strong>to Remote Mode<strong>PS</strong>/2 <strong>Mouse</strong>Timeout CheckReturnFigure 11. 1 ms Interrupt Service Routine<strong>PS</strong>/2 is a registered trademark of the International Business Machines Corp.© Cypress Semiconductor Corporation, 1998. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the useof any circuitry other than circuitry embodied in a Cypress Semiconductor product. Nor does it convey or imply any license under patent or other rights. Cypress Semiconductor does not authorizeits products for use as critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of CypressSemiconductor products in life-support systems application implies that the manufacturer assumes all risk of such use <strong>and</strong> in doing so indemnifies Cypress Semiconductor against all charges.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!