Forum Discussion
Altera_Forum
Honored Contributor
11 years agoI'm not an expert on USB protocol, but as far as I know, your method of connecting USB to UART chip to an HID device will not work because of the following:
1.) USB to UART chip is a conversion IC between a USB Host port and standard UART interface, it requires a specific USB driver running on the USB host that it's connected to do the enumeration and configuration, and to excahnge data with the IC. So, this chip is a USB device that needs to be connected to a host. 2.) the USB HID device is also a device that needs to be connected to host, which can access the data with the help of a generic HID class driver on the host side. So, guess what would happen if you connect two devices to each other? You can't connect them. The USB connectors physically don't mate with each other. Even if you do with some exotic adaptor, the interface will not work. A possible solution though, is to bring the USB signals to the FPGA, and have a USB host controller running in the FPGA. I know there are USB host controller IP available, but i never tried using one. Another solution would be to have the HID device connected to an external USB host controller, then have that controller connected to the FPGA via other simpler digital interface. But either ways, the work required to interface to a USB HID device is substantial if you start everything from scratch. If you absolutely have to interface an HID device to your FPGA, the easiest thing to do would be to have a microcontroller running an OS that supports USB HID devices, and convert the HID data to UART character streams, and send that to the FPGA.