Skip to main content

Posts

Showing posts from November, 2017

PSoC 5LP USB Dual COM Port

PSoC Creator provides a simple way to implement certain type of USB devices including a USB composite device that has two CDC device. Thus you can turn a $10 PSoC 5LP stick into a FT2232 like device or you can build a UART sniffer with few lines of code. Dual UART in looback connection PSoC Creator Component Setup Start a new PSoC project with the selection of appropriate PSoC device. Then pick a USBFS from the Cypress Component Catalog on the right. Open up the configuration dialog by double clicking on the component. At the Device Descriptor page, select the Import Descriptor Root (green down arrow) button. It will show up a file selection dialog box that allows you to import templates (xml files) from handful number of predefined settings. For the purpose of this post, choose  USBUART_TwoComPorts.root.xml . You will find that all the descriptors and items necessary for dual CDC are nicely populated. You can delete any existing device descriptors. Finally p