USB Electrical Layout?


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262

    Default USB Electrical Layout?

    I'm trying to layout my circuit board for a 18F4550 with USB, I have a USB B connector, but I have a question. I assumed that i just need to tie D+ and D- to those pins on the PIC and tie the USB +/- to 5V Supply, However there is a Vusb Pin That I'm not sure what its for.

    Researching USB with this PIC online results in a myriad of answers.
    Some articles say you have to pull the D pins high
    Some sites have the Vusb pin tied to a capacitor to ground
    http://digilander.libero.it/Naimah81/USB/easy_usb.jpg

    I will be using VB 2010, to program the interface. Found this article that may help
    http://www.protonbasic.co.uk/showthr...10-ADC-project

    I found a artile that I am reading on now
    http://www.picbasic.co.uk/forum/showthread.php?t=16036

    what is the Vsub? Is there a rule for the Capacitor value? Do I need resistors attached to the D+/- Pins? Do I need to seperate USB+ from PIC+ with something like a 10 ohm resistor to protect against voltage differances (so PIC VDD = 4.5 and PC USB = 5, then there is a .5volt difference, adding a 10ohm resistor protects circuit).

  2. #2
    Join Date
    Dec 2012
    Location
    Tennessee
    Posts
    262


    Did you find this post helpful? Yes | No

    Default Re: USB Electrical Layout?

    also, several articles show different Crystal frequencys, but one article stated USB requires a 48mhz crystal, I need to know what crystal I need.

  3. #3
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default Re: USB Electrical Layout?

    Quote Originally Posted by wdmagic View Post
    also, several articles show different Crystal frequencys, but one article stated USB requires a 48mhz crystal, I need to know what crystal I need.
    - About the Oscillator
    Datasheet Page 23, Section 2 and page 30 Section 2.3

    - Answer about the Pull Up Resistors
    Datasheet Page 169, Section 17.2.2.3 and 17.2.2.4

    - About the capacitor;
    Datasheet Page 170, Section 17.2.2.8

    You may also read this 3 Wiki articles;
    http://www.picbasic.co.uk/forum/content.php?r=377-usb

    Hope it helps!
    Thanks and Regards;
    Gadelhas

  4. #4
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: USB Electrical Layout?

    Quote Originally Posted by wdmagic View Post
    (so PIC VDD = 4.5 and PC USB = 5, then there is a .5volt difference, adding a 10ohm resistor protects circuit).
    No, use a 5V regulator for the PIC.

    Name:  USB_schematic-mrE.gif
Views: 2492
Size:  28.8 KB
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

Similar Threads

  1. PCB Layout Services
    By jmgelba in forum Adverts
    Replies: 10
    Last Post: - 4th July 2017, 15:09
  2. Super low cost USB solution
    By Jumper in forum General
    Replies: 2
    Last Post: - 18th January 2013, 11:21
  3. Wake from sleep with USB Interrupt
    By kduck63 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 13th January 2013, 00:59
  4. Bidirectional Excel Data via USB
    By jmstrat in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd January 2013, 08:04
  5. PCB Layout Service
    By alex1202 in forum Adverts
    Replies: 0
    Last Post: - 23rd August 2007, 22:50

Members who have read this thread : 0

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

Posting Permissions

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