This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB with emulation of it

I wonder if it would be possible to emulate a USB port on a couple of the GPIO pins. There are a number of Arduino libraries, for example, that implement USB serial entirely in software (e.g. V-USB for AVR). Perhaps something similar could be done with a task? Wouldn't need USB3 but USB2 would be very good.

  • So you don't need Gbit+ speeds but are happy with running the pins at 480 Mbit/s?

    Even 12 Mbit/s is quite a lot.

    I have seen a number of implementations of 1.5 Mbit/s.

    If you try to use a task - who is responsible for the USB signalling during the time when the task isn't in control?

  • Given the engineering resources, and CPU frequency/hp required to do it, I think I'd just opt to buy a chip that intrinsically supported USB-FS. If I wanted such an intellectual challenge I'd probably go the FPGA route, doing it in software is just such a half-arsed approach. You might learn a lot about your coding skills, and the appropriate use of hardware/software.