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.
|