2018-01-05 06:37 AM
Hello,
Question: I would like to know the status of the USB connection wither its connected or not. Using microcontroller Pin interrupt. Pin value seems to be always high rather than going low when not connected. Is there any way in which I can achieve using interrupt. I would like to use only external interrupt because when USB is disconnected then make the controller to deep sleep mode and when connected wake up from sleep. I would like to in this fashion. Any suggestions would be grateful. Thank you.
VCC USB1 = 5V(from USB when connected provides 5v and disconnected gives 0v) voltage Divider : voltage measured between the 2 resistors.
Thanky you.
#stm32l073v8t #stm32 #mbed #stm32l0-exti