Re: USB circuit disconnects when the circuit is put near another surface



On 30 Jan, 03:59, t...@xxxxxxxxxx (Tom) wrote:
In article <bcf116ff-811c-4689-907d-0690213a4...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>, caa...@xxxxxxxxxxxxxx wrote:





I have built a basic circuit for the PIC18f4550 using a 20 MHz crystal
fromhttp://www.create.ucsb.edu/~dano/CUI/. =A0I have installed the HID
firmware fromhttp://www.lvr.com/usb.htm(USBcomplete). =A0The circuit
works fine and connects ok then installs the driver as long as it is
suspended in free space.

As soon as the circuit comes near ( 2-3 cm) another surface (paper or
the wooden table) the usb disconnects. =A0When I investigated I found
the voltage on D+ signal line went down from the required 3.1V(approx)
to 1.45V as it neared the surface, thus initiating the disconnection..

Thanks for the advice.  However the circuit definately disconnects
when something is brought to within approximately 1-2 cm of it.  To
prove this I clamped the USB plug with the circuit board in free space
vertically.  With no contact at all with the circuit board and it not
moving, a book brought slowly towards the circuit makes it disconnect
once it comes within 1-2 cm and reconnects when I take it away.

I have tried swapping the usb cable and measured the resistance of the
board ground to the computer end of the usb cable, they are all fine.

I have connected all the ground points shown in the circuit to the
ground of the usb supply (pin 4), should there need to be any
connection to the usb cable sheath earth?  Or does it need to be in a
metal box connected to the sheath to stop the stray reflections?

Could be that your 20MHz oscillator is barely oscillating. Check the solder
connections on both legs of the crystal, and make sure the connections between
the crystal and OSC1 / OSC2 are as short as possible and not accidentally
connected to ground or to the case of the crystal. Also make sure that you're
using the proper type crystal (series / parallel) and the proper load
capacitance; something around 18pF should be fine. Also make sure you have the
proper oscillator type selected in your config fuses (address 300001), I
believe it should be set to HSPLL (bits 3-0 set to 111x) for full speed USB.

--Tom.- Hide quoted text -

- Show quoted text -

Cracked it! You were right about the poor clock. I had a poor
connection on the crystal which I had missed on many checks.
Resoldered the crystal and I can now place the circuit board anywhere
and it stays connected.

The reflections from a nearby surface must have been just enough to
overwhelm it.

Thanks for all the help, I can now spend the rest of the day working
out how to use the outputs of the chip. As you have probably guessed
these microcontrollers are all brand new to me.

Mike.
.



Relevant Pages

  • Re: USB circuit disconnects when the circuit is put near another surface
    ... firmware fromhttp://www.lvr.com/usb.htm. ... the circuit also cured the problem. ... Yes but caused by an intermittent connection on the ground as the circuit ... However the circuit definately disconnects ...
    (comp.arch.embedded)
  • Re: pls help
    ... i opened the controller but the connection between the ... circuit board's button and the plastic button is fine so is it the ... circuit board, especially under the button itself, and then either let it dry or blow it off with compressed air. ... If you notice the cotton swab gets dirty or the color of the board under the button changes, keep cleaning until it is completely clean, and don't leave any cotton attached to the solder joints. ...
    (rec.games.video.sega)
  • Re: Hum, Ground Loops and Safety
    ... conductor path to a place where there's a lower charge. ... grounding wire. ... unintentional connection between the hot wire and the chassis of the amp. ... there will be a fuse or circuit breaker wired into the hot ...
    (alt.guitar.bass)
  • Re: explorer.exe freezes
    ... My experience is based a wired broadband internet connection. ... early versions of USB were much slower than USB 2. ...
    (microsoft.public.windowsxp.general)
  • Re: ActiveSync 4.1 Still does not work...
    ... AS4.1 installs some USB ... ActiveSync, then allowing Windows to find it again. ... in the system tray for the new 'network adapter' with the 'acquiring network ... If everything seems to be set correctly, but no connection is established, ...
    (microsoft.public.pocketpc.activesync)