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.

Controlling or interfacing USB Peripherals and devices to uC

Status
Not open for further replies.

sadat007

Full Member level 4
Joined
Dec 31, 1999
Messages
235
Helped
13
Reputation
26
Reaction score
7
Trophy points
1,298
Location
Pakistan
Activity points
1,773
Hello,
Can any one have idea how to interface a USB printer or or other USB devices to a uC?
Like I want to control my Creative MP3 player via its USB and don't want to use PC.
Thx
 

Regnum

Full Member level 5
Joined
Jun 17, 2004
Messages
262
Helped
18
Reputation
36
Reaction score
7
Trophy points
1,298
Location
Hurlingham
Activity points
2,168
Re: Controlling or interfacing USB Peripherals and devices t

Does your platform already support USB ?
 

brmadhukar

Advanced Member level 3
Joined
Jun 21, 2002
Messages
840
Helped
42
Reputation
84
Reaction score
11
Trophy points
1,298
Location
India
Activity points
6,783
Re: Controlling or interfacing USB Peripherals and devices t

Hi,
You may not be able to do it easily as you have to implement a USB controller along with your uC. There are two different connectors for the USB cable. One that plugs into your MP3 is what plgs into all other USB devices. It is easier to buit a target system and more meaningful to buy the host system, in this case the PC is already equipped with it.

Hope this helps,
Madhukar
 

sadat007

Full Member level 4
Joined
Dec 31, 1999
Messages
235
Helped
13
Reputation
26
Reaction score
7
Trophy points
1,298
Location
Pakistan
Activity points
1,773
Re: Controlling or interfacing USB Peripherals and devices t

Regnum said:
Does your platform already support USB ?

The device I want to controll is already USB sopported.
I want to make a HOST to controll it.
 

brmadhukar

Advanced Member level 3
Joined
Jun 21, 2002
Messages
840
Helped
42
Reputation
84
Reaction score
11
Trophy points
1,298
Location
India
Activity points
6,783
Re: Controlling or interfacing USB Peripherals and devices t

Hi,
Exactly. You really want to build what is there in the PC. USB was designed for HOST centric system. What your uC controls is only the data transfer from PC to your device.

If you want to build a host you need to have USB controller IC. You may as well take a look at one of those with the application notes. It is not what people normally attempt.

Good luck
Madhukar
 

checkmate

Advanced Member level 3
Joined
Feb 25, 2004
Messages
833
Helped
178
Reputation
356
Reaction score
125
Trophy points
1,323
Location
Toilet Seat
Activity points
7,815
Re: Controlling or interfacing USB Peripherals and devices t

Building a USB device is already quite a formidable task. Building a USB host is quite unthinkable, especially with a puny microcontroller. If you really want to attempt it, you may try looking at Cypress's range of host controllers.
Besides, even if you do figure out how to work the USB host, you'll have to obtain the protocols used by your mp3 player or printer from the manuafacturer, provided they will even bother to entertain your request.
 

sadat007

Full Member level 4
Joined
Dec 31, 1999
Messages
235
Helped
13
Reputation
26
Reaction score
7
Trophy points
1,298
Location
Pakistan
Activity points
1,773
Re: Controlling or interfacing USB Peripherals and devices t

Hi,
It looks like that I should forget about it :(
For the protocols of my Creative MP3 player I have seen on net that some people do communication via PC USB with their own build softwares so the protocols are their.
Atmel also providing HOST USB controller and sent them sample request.

Thx
 

sadat007

Full Member level 4
Joined
Dec 31, 1999
Messages
235
Helped
13
Reputation
26
Reaction score
7
Trophy points
1,298
Location
Pakistan
Activity points
1,773
Re: Controlling or interfacing USB Peripherals and devices t

Hi again,
One more thing I want to point you, just think if parallel interface support stop in future for printers then how embadded sytems will do printing on the available USB printers? May be its to early.
Thx
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top