Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > What kind of USB solution do I need?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



What kind of USB solution do I need?
Moderator:
ANCY

Post Reply
Follow this topic



What kind of USB solution do I need?

Helmut posted on 17 Oct 2012 4:01 PM PST
Top Contributor
48 Forum Posts

I'm not sure of how to solve my USB need.  Perhaps you can help me.

In the past, I had a custom PSoC1 board that used RS-232 to communicate with a PC, and on the PC I ran hyperterm or teraterm. 

I've now upraded to a new custom PSoC5 board, and I want to use USB instead of RS-232.  All I wanted was a simple microprocessor command interface.  You know, the kind where the microprocessor outputs ">" and I type in a text command followed by carriage return.  Beyond that, I'll be sending blocks of text data back and forth.

I can envision several possible solutions.  Your advice on the shortest and easiest path is greatly apperciated.

1) On the PC, I could continue running hyperterm or teraterm.  This implies I need a virtual com port driver installed on the PC.  I've done this in the past with boards having an FTDI chip, but with a PSoC5 instead of the FTDI chip, I assume I'll need a cypress-sourced driver instead.  Then, if I go this route, my PSoC5 chip might be programmed as if it were a USB-to-Serial adapter, but I only need the USB-to part of that.  I'll use the serial data inside the PSoC5, not forwarded on out an actual RS-232 port.

2) I omit any reference to a serial port.  This means I need to use a USB HID or CDC model, I believe.  In this case, I'll need to replace hyperterm or teraterm with a different terminal emulation type program that connects to an actual USB driver rather than a virtual com port.  Meanwhile, inside the PSoC5 chip, I'll need to configure and use it appropriately.

I've bumped into both the USBFS and USBUART components for the PSoC5 TopDesign.  I don't know which to use.  I've found appnotes about USB-to-Serial, but I'm not sure if it's totally appropriate.  There seem to be too many choices.  I'd rather not have to spend a long time studying each one in order to figure out which is appropriate.

Thanks.




Re: What kind of USB solution do I need?

Helmut posted on 17 Oct 2012 04:03 PM PST
Top Contributor
48 Forum Posts

 ...oh, and a link to an app note implementing your recommendation would be highly appreciated.



Re: What kind of USB solution do I need?

Helmut posted on 17 Oct 2012 04:18 PM PST
Top Contributor
48 Forum Posts

 ...I do find in the PSoC Creator 2.0 folder a USB_UART example.  It uses USBFS with name USBUART.  Perhaps it's a little old, before the actual USBUART component got released.  It *seems* like the thing I need.  Any comment on this?  Thanks again.



Re: What kind of USB solution do I need?

Bob Marlowe posted on 18 Oct 2012 04:21 AM PST
Top Contributor
1768 Forum Posts

There's still an USBUART (v 2.30) component in the latest version of Creator 2.1 rev 4 and I've read some post of other members implementing it successfully and connecting to hyperterm and similar products.

 

Happy coding

Bob






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20