Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Looking for chip for USB cable detection

Status
Not open for further replies.

alexz

Full Member level 5
Joined
Nov 19, 2004
Messages
283
Helped
6
Reputation
12
Reaction score
3
Trophy points
1,298
Location
UK
Activity points
2,246
usb cable detector

Has anybody got a circuit or a chip to recommend for the USB cable detection
once plugged in ? And also detection when the cable is removed.
I am using USBN9603 and PIC16F877
 

usb attach detection protocol

Do you mean to detect the USB cable only? That's one end of the cable is connected to host and another end is left open or connected to nothing?
 

Re: USB Cable Detection

nicleo said:
Do you mean to detect the USB cable only? That's one end of the cable is connected to host and another end is left open or connected to nothing?


I mean the device.
I want to detect when the device is connected and disconnected in my firmware.
 

Re: USB Cable Detection

alexz said:
USBN9603 and PIC16F877....
I mean the device.
I want to detect when the device is connected and disconnected in my firmware.
Do you think page 22 (Line Condition Detection) of the USBN9603 datasheet help?
In my opinion, USBN9603 will detect itself and PIC16F877 just needs to read the status stored at specified register in USBN9603. However, I might be wrong.

By the way, you can visit the following site:
**broken link removed**
The author of the site builds a device that communicates with PC via USB.
The Author said:
First is the easy use of USB interface, USB device is real plug_play, no hassle to set IO, INT, DMA, hot plug, and no hassle to open case...
You could find source and schematic of the project in the site.
 

Re: USB Cable Detection

The usb hub detects a usb device via the device's pull up resistors on the data lines, depending on the operating speed. This is part of the usb specifications.
This pull-up effect is is controlled by the microcontroller via the ATTACH bit.

Normally, the device doesnt have to know whether a cable is attached. It should just ATTACH and wait for host response. USB is after all a host-centric protocol. All requests are initiated by the host, not the device.
 

Re: USB Cable Detection

This pull-up effect is is controlled by the microcontroller via the ATTACH bit.



What do you mean by that? What is attach bit?
 

Re: USB Cable Detection

Page 30 of the USBN datasheet, under NAT.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top