Making PSoC talk to your computer. | Cypress Semiconductor
Making PSoC talk to your computer.
Let's face it, when you create a USB device, you will want it to communicate with some form of a host interface. Using a UART-USB interface is one way to go about this and COM ports are among the more familiar interfaces. But have you ever tried to develop a device that uses a USB COM port in a custom application, that functions across multiple operating systems, while not running into difficulties?
It used to be with creating host applications for a computer, you only needed to create one application for Windows. In today's world, operating systems such as Mac OS X and Linux are growing in popularity. Additionally, mobile devices running Android are increasing in numbers with the continuous production of smart phones and tablets. With so many different operating systems available, the need for cross platform functionality is ever so more important.
What if I told you there was a way to develop a PSoC 3 or PSoC 5 application to easily stream general data across USB and provide the foundation for cross platform functionality? Using the Human Interface Device (HID) class makes this possible. Yes, the same class that is used for mice and keyboards is breaking free from the stereotype that it is limited to a device that requires some form of human interface, such as a button press, to function.
The truth is that the HID protocol provides the perfect foundation to shuttle data back and forth between a PSoC and computer, in applications where high speed data transfer is not required. Best of all is that implementing a generic HID on PSoC is easy to do and creating Graphical User Interfaces (GUIs) on various operating systems such as Windows, Mac OS X, and Linux is fairly straightforward. AN82072: PSoC 3 / PSoC 5 USB General Data Transfer with Standard OS Drivers will guide you through all the steps required to do so. You will have your PSoC streaming data to a host operating system of your choice in no time!
You can download this application note from the following link.
AN82072 - PSoC® 3 / PSoC 5 USB General Data Transfer with Standard OS Drivers
By Robert Murphy