wuxx / icesugar

iCESugar FPGA Board (base on iCE40UP5k)
350 stars 96 forks source link

Question: Is there a USB PHY for the microUSB? #28

Closed erlingrj closed 3 years ago

erlingrj commented 3 years ago

Hi, and thanks for an awesome project. I have purchased an IceSugar FPGA board but have a question about the microUSB port. From inspecting the schematics it seems as if the D+ an D- pins are directly connected to IOB_18A and IOB_16A on the Lattice ICE40. I am not experienced in this domain, but I would have expected a USB PHY chip to be connected to the microUSB connector and a serial RX/TX interface of the USB PHY connected to the FPGA.

Am I missing something here?

Again, thanks for a cool project, I am looking forward to using your board.

wuxx commented 3 years ago

Hello, the USB IO is just two normal GPIO, the USB 2.0 full speed clk is only 6MHz, it's easy implement by fpga (even some MCU GPIOs, the software USB), you can check the demo code under advanced directory

erlingrj commented 3 years ago

Thanks for your quick reply. I will check out the advanced directory. I found a guy that implements the USB stack at TinyFPGA-Bootlaoder, but that only implements the USB device endpoint, I need a host endpoint. But I will dig further, or I might just use a MCU with a USB Phy to act as a USB host. Anyways, thanks for your help. I will close the issue now.