I have PIC32 MCU. It supports USB OTG functionality. I searched a lot on google about the applications regarding OTG but didn't find many results. I was wondering if any one can explain what can be done with OTG in MCU. Can we store some data via OTG in flash drives. ?
Electronic – What can be done with USB OTG ports in microcontroller.
microcontrollerusb
Related Topic
- Electronic – STM32 “USB Device” vs. “USB OTG HS” – what is the difference
- Electronic – Why aren’t PCB mounted male mini USB connector parts common
- Electrical – Use mobile to power external LED(bulb) via a Micro USB port
- Electrical – Designing a USB switch, schematic done, wanting a second opinion
- Electronic – Is 5.5V safe for USB storage devices
Best Answer
USB OTG is basically like a mini-host and can connect to flash drives, keyboards, printers, hubs - basically anything you want. The key differences between a USB OTG host and a regular USB host (such as your PC) are:
So yes, you can most certainly use the OTG functionality to store data into a flash drive, and this is quite a common usage. However you will have to write a lot of software to achieve this functionality. The limited resources in the PIC32 may also prevent you from supporting too many devices at the same time or running more complex peripherals.
Also, if your product doesn't need to act as a device it is not an OTG product but simply an embedded host. In that case you don't need to worry about items 1 and 3 that I've listed above.