+ Reply to Thread
Results 1 to 2 of 2
  1. #1

    Default How to detect USB Attached/detached

    Hello

    the pic18f45k50 stuck when i detached it from the usb (pc).
    the software running hid keyboard and uart keyboard , how i can detect if the pic18f45k50 Attached/detached to usb pc ?

    Eyal

  2. #2
    Join Date
    Apr 2014
    Location
    Northeast
    Posts
    320

    Default Re: How to detect USB Attached/detached

    The USB connector has 4 pins; D+, D-, Gnd, and Vusb. If you have voltage on Vusb, you are connected. Dedicate one of your pins for detecting Vusb.
    I don't need the world to know my name, but I want to live a life so all my great-grandchildren proudly remember me.

Similar Threads

  1. Replies: 26
    Last Post: - 11th February 2019, 08:13
  2. Replies: 60
    Last Post: - 10th October 2016, 11:37
  3. Replies: 2
    Last Post: - 16th September 2011, 04:38
  4. Replies: 1
    Last Post: - 7th November 2007, 21:36
  5. Max/232 Bootloader problems - Schematic attached...
    By rossfree in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 4th May 2007, 15:54

Members who have read this thread : 15

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts