Transmitting IN and OUT through a single endpoint
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Answer:
The USB Specification requires that a device have at least one data IN endpoint. The CY630/1xx has only one data endpoint, endpoint 1, which must be dedicated to the IN interrupt endpoint. In order to send data OUT to the device, you will need to use the control endpoint, endpoint 0. The SET_REPORT and GET_REPORT requests are used to send and retrieve data to/from the device through the control endpoint.
While this approach is not as efficient as using a data endpoint due to the overhead involved in control transfers (three stages - Setup, Data, and Status stages- are needed to complete the transfer), it is the only method available to send data OUT using the CY630/1xx family. If OUT data performance is an issue, consider using a part with more than one data endpoint.
Jan Axelson has a very good sample code demonstrating this method on her website at www.lvr.com.
Applies To:
CY7C63000, CY7C63001, CY7C63100, CY7C63101
-
This widget could not be displayed.Anonymous