Question
STM32F4 - Detection of USB Data Stick Plugged In
Posted on March 19, 2016 at 22:19
Hi:
On an STM32F405, I am using ports PA9 through PA12 connected through to a USB Mini B connector. The intention is to use the port so I can plug in a USB stick and transfer data to it. To drive USB power, I have a STMPS2141STR switch. I don't want the switch to be enabled unless the USB stick is plugged in. I do not understand the USB interface mechanism that would allow this detection to happen so the STMPS2141STR switch should be enabled only when the USB has a stick installed. Can someone please explain? Thank you. #usb #stm32f4 #host #host #usb #usb #power