You are here

USB Full-Speed, Low-Speed Code Examples | Cypress Semiconductor

USB Full-Speed, Low-Speed Code Examples

Last Updated: 
Oct 21, 2014

Code Examples integrated with Application Notes

AN# Title Part# Kits Description
AN88890 Adding Touch-Sensing User Interfaces to Wireless HID Products Using PRoC™-CS CYRF89435,
CYRF89235
--
This Application note includes firmware example projects to illustrate the implementation of CapSense based user interfaces on wireless mouse, remote control, and numeric keyboard applications.
AN83281 Developing RF-Based Remote Control Using WirelessUSB™-NL CYRF8935 CY3668 WirelessUSB™-NL DVK This Application note includes descriptions of the system architecture and associated functional modules and PSoC projects for Wireless USB-NL
AN79455 Getting Started with WirelessUSB™-LP Radio and enCoRe™ V LV CY7C604XX,
CYRF6936,
CY7C6434X
CY3660 DVK This Application note explains how to use PSoC® Designer™ 5.2 software to configure the ADC, LCD, and SPI User Modules with an enCoRe V LV device
AN43353 Using enCoRe™ V 16-Bit Timer Modules as PWMs CY7C6431x,
CY7C64345,
CY7C6435x,
CY7C604x5,
CY7C60456
CY3250 This Application note describes how the 16-bit Timer User Module in enCoRe™ V can be leveraged to build a PWM using the part.
AN1193 Using Timer Interrupt in Cypress EZ-USB® FX2LP™ Based Applications CY7C68013/
14/15/16
CY3684 This Application note explains firmware developers how to use timer interrupts in their applications, by providing a framework based timer interrupt program written in C.
AN15482 Using Capture Timers in enCoRe™ II and enCoRe II LV Devices CY7C63310,
CY7C638xx,
CY7C601xx,
CY7C602xx
CY3655-EXT This Application note describes the features and architecture of the enCoRe™ II capture timer module and explains its use.
AN6075 enCoRe™ II USB Bootloader CY7C638xx,
CY7C633xx
CY3655-EXT,
CY3216
This Application note describes a bootloader for the low-speed USB enCoRe II device to implement this capability.
AN2373 Ranking Original Pseudo-Noise Codes in a DSSS System CYRF8935 CY3668
WirelessUSB™-NL
DVK
This Application note explains about assessing the quality of a given PN (Psuedo NOISE) code relative to another, because it is important in choosing a code appropriate for an application.

Code Examples integrated with Development Kits

The following Code Examples are integrated with CY3655 enCoRe II Development Kit. To access these code examples, follow the path C:\Cypress\ CY3655-EXT enCoRe II DVK\\ \Firmware

Title Part# Kits Description
DrawUSB Example CY7C63310,
CY7C638xx,
CY7C601xx,
CY7C602xx
CY3655-EXT,
CY3668
DrawUSB example demonstrates the basic functionality of a USB HID mouse. The example application contains a USB HID mouse descriptor that works on any USB host with HID driver. This example application enumerates as a three button USB mouse (HID class) and moves the mouse cursor in the shape of the letters U, S, and B. It demonstrates the use of the USB User Module API.

The following Code Examples are integrated with CY3664 enCoRe III Development Kit. To access these code examples, follow the path C:\Cypress\USB\CY3664-EXT encore III DVK\\Firmware

Title Part# Kits Description
Bulk Example CY7C64215 CY3664-EXT This project demonstrates USB loopback using BULK endpoints.
HID Example CY7C64215 CY3664-EXT This project demonstrates the basic functionality of USB HID mouse. A complete USB HID descriptor is provided,which allows enumerations on any USB host that supports a HID class.
ISOC Example CY7C64215 CY3664-EXT This project shows how to create an alternate interface for isochronous applications. This example uses the streamer application to send data over ISOC IN endpoint.

The following Code Examples are integrated with CY3660 enCoRe V Development Kit. To access these code examples, follow the path C:\Cypress\USB\CY3674_EZ-USB_FX1_DVK\1.0\Firmware

Title Part# Kits Description
Bulk Example CY7C6434X CY3660,
CY3668
This project demonstrates USB loopback using BULK endpoints.
HID Example CY7C604XX CY3660,
CY3668
This project demonstrates the basic functionality of USB HID mouse. A complete USB HID descriptor is provided,which allows enumerations on any USB host that supports a HID class.
ISOC Example CY7C604XX CY3660,
CY3668
This project shows how to create an alternate interface for isochronous applications. This example uses the streamer application to send data over ISOC IN endpoint.
WUSB (Wireless USB) Example CY7C604XX CY3660,
CY3668
The WUSB_Example demonstrates the functionality of a WirelessUSB HID keyboard. Twodevelopment boards with LP radio modules are used for this example. One board is used as abridge, which enumerates on the PC as a bus-powered USB composite device supporting keyboardand mouse. The other board is used as a keyboard, which simulates a simple keyboard with threekeys (Num Lock key, Caps Lock key, and Scroll Lock key) and three LEDs (Num Lock LED, CapsLock LED, and Scroll Lock LED).

The following Code Examples are integrated with CY3674 EZ-USB FX1 Development Kit. To access these code examples, follow the path C:\Cypress\USB\CY3674_EZ-USB_FX1_DVK\1.0\Firmware.

Title Part# Kits Description
hid_kb CY7C64713 CY3674 Example firmware that emulates a HID-class keyboard using the buttons and 7-segment display on the DVK board.
bulkloop CY7C64713 CY3674 Contains a bulk loopback test that exercises the EZ-USB bulk endpoints. It loops back EP2OUT to EP6IN and EP4OUT to EP8IN.
bulkext CY7C64713 CY3674 Contains a bulk loopback test that exercises the EZ-USB bulk endpoints. The loopback is performed using the external auto pointer. Data is copied from the OUT endpoint buffer to external RAM and then to the IN endpoint buffer. It loops back EP2OUT to EP6IN and EP4OUT to EP8IN.
bulksrc CY7C64713 CY3674 Contains bulk endpoint endless source/sink firmware. It can be driven using the CyConsole or CyBulk. EP2OUT always accepts a bulk OUT; EP4OUT always accept a bulk OUT; EP6IN always returns a 512-byte packet, 64 bytes at full-speed. Based on buffer availability in EP8IN, the most recent packet of EP4OUT is written to EP8IN.
dev_io CY7C64713 CY3674 Contains the source files to build simple development board I/O sample. This software demonstrates how to use the buttons and LED on the EZ-USB development kit.
EP_Interrupts CY7C64713 CY3674 Bulk loopback firmware that demonstrates use of endpoint interrupts using EZ-USB FX2LP.
extr_intr CY7C64713 CY3674 Firmware that demonstrates external interrupt handling INT0, INT1, INT4, INT5 and INT6.
Ibn CY7C64713 CY3674 Contains firmware to perform bulk loopback of EP2OUT to EP6IN and EP4OUT to EP8IN using the IBN (In Bulk Nak) interrupt to initiate the transfer.
LEDCycle CY7C64713 CY3674 Simple firmware example to demonstrate use of the general purpose indicator LEDs (D2, D3, D4, D5) on the Development Kit board.
Pingnak CY7C64713 CY3674 Contains firmware to perform bulk loopback of EP2OUT to EP6IN and EP4OUT to EP8IN using the PING NAK interrupt to initiate the transfer.
iMemtest CY7C64713 CY3674 Memory test firmware example. Tests on-chip RAM.
vend_ax CY7C64713 CY3674 Contains the source files to build a vendor specific command sample. This example demonstrates how to implement different vendor commands.

The following Code Examples are integrated with USB-Serial Software Development Kit , CYUSBS232 Reference Design Kit, CYUSBS234 Development Kit and CYUSBS236 Development Kit. To access these code examples, follow the path \\1.0\Examples

Title Part# Kits Description
Device
Enumeration
CY7C64225,CY7C65213,
CY7C65211,CY7C65215
CYUSBS232,
CYUSBS234,
CYUSBS236
This host application demonstrate how to enumerate USB-Serial devices using the cyusbserial API and display device details.
UART CY7C64225,CY7C65213,
CY7C65211,CY7C65215
CYUSBS232,
CYUSBS234,
CYUSBS236
This host application demonstrates how to communicate with UART on the USB-Serial RDK/DVK using the cyusbserial API.
I2C Master CY7C65211,CY7C65215 CYUSBS234,
CYUSBS236
This host application demonstrates how to communicate with EEPROM connected to I2C on the USB-Serial DVK using the cyusbserial API.
SPI Master CY7C65211,CY7C65215 CYUSBS234,
CYUSBS236
This host application demonstrates how to communicate with EEPROM connected to SPI on the USB-Serial DVK using the cyusbserial API.of EP4OUT is written to EP8IN.
GPIO Control CY7C65213,CY7C65211,
CY7C65215
CYUSBS232,
CYUSBS234,
CYUSBS236
This host application demonstrates how to configure the GPIOs available on USB-Serial device using the cyusbserial API.

Web Code Examples

KB# Title Part# Kits Description
50018 HID out report example CY7C64215/
CY7C6434X
CY3664-EXT,
CY3660
This code example demonstrates HID Out report transfer.