AN58726 is a continuation of basic-level AN57473. It describes additional features of the USB Human Interface Device (HID) protocol, including input and output transactions and composite devices, using PSoC® 3 and PSoC 5LP and the PSoC Creator™ USBFS Component. A variety of HID devices, including a keyboard with LEDs and a composite device, are used as examples. This application note is a prerequisite for the advanced-level AN56377 and AN82072.
Introduction
USB is a complex protocol, and it can be difficult for beginners to get a USB-based application up and running quickly. However, some aspects of USB are easy to use, especially the Human Interface Device (HID) protocol. HID is designed for common PC interface devices such as a keyboard or mouse, but it can be adapted for many custom applications. Most PC operating systems, including Windows, Mac, and Linux, include HID drivers. This means that you do not have to write a driver; instead, you can focus on developing your application firmware.
The following table provides the list of devices, the supported Creator version, Development kit and Compiler for this application note project:
Project |
Device
|
PSoC Creator
Version |
Development Kit
CY8CKIT-xxx |
Compiler
|
|||||||
Architecture
|
Silicon
Revision |
V2.1 SP1 or higher |
V2.1/2.0
|
001
DVK |
Keil
|
GCC
|
RVDS
|
MDK
|
|||
AN58726.zip |
Prod
|
YES
|
NO
|
YES
|
YES*
|
NO
|
YES
|
N/A
|
N/A
|
N/A
|
|
Prod
|
YES
|
NO
|
YES
|
YES*
|
NO
|
N/A
|
YES
|
YES
|
YES
|
||
AN58726_Archive.zip |
ES2, ES3, Prod
|
NO
|
YES
|
YES
|
YES*
|
NO
|
YES
|
N/A
|
N/A
|
N/A
|
|
ES1
|
NO
|
YES
|
YES
|
YES*
|
NO
|
N/A
|
YES
|
YES
|
YES
|
*Refer to Migrating CY8CKIT-001 DVK project to CY8CKIT 030/ 050.
- Click on AN77835 - PSoC® 3 to PSoC 5LP Migration Guide to learn differences between PSoC 3 and PSoC 5LP.
- For PSoC 5 project and related document, please download file AN58726_Archive.zip.
Projects associated with this application note can be downloaded from the ‘Related Files’ section below. For your convenience, we have provided projects that are compatible with the two most recent versions of PSoC Creator:
- AN58726.zip is used with PSoC Creator 2.1 SP1
- AN58726_Archive.zip is used with PSoC Creator 2.1/2.0
The project’s default settings may not be compatible with your device or kit, and you may need to change your project settings. For more information, see: