1

I want to know when something is connected to USB port by blinking an LED.

I suppose have to check PB10 UOTGVBOF, but how to do this ?

1

What I'm going to say is probably not the most efficient way to do it, but it should work: if your DUE is used as gadget and you wnat to detect the presence of a master, connect a GPIO to the +Vcc line of the usb port and either poll or program an edge triggered interrupt to detect when the line goes high.

  • Got it working by testing some internal registers state. Thanks for the reoly though – Siddharth Nov 4 '15 at 13:59
  • @Siddharth Would you care to put your solution as an answer. It'll help others who come by later with the same question. Regards, – Michael Vincent Sep 14 '16 at 9:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.