Jump to content
ELFORUM - Forumul electronistilor
Guest musaraf

Controller USB host - legare Webcam, stick USB etc. la PIC

Recommended Posts

Guest musaraf

Ca sa legam un periferic USB la un microcontroler (stick USB, webcam, adaptor WLAN, imprimanta) de ce ar fi nevoie pe partea hard? Pentru soft cred ca se poate lua un driver generic din Linux si analiza (sau compila pentru un microcontroler mai "mare" (PIC 18Fxxx, Atmega128 etc) ).

Stiti de vreun PIC cu USB host? Am gasit un AVR cu asa ceva (AT90USB1287)

- http://www.atmel.com/dyn/products/produ ... rt_id=3874

si un IC de la Maxim, care merge ca USB host sau device (MAX3421E)

- http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3639

Sau se poate face totul in soft?

Link to comment
Share on other sites

USB Host-ul se ocupa si din p.d.v. hardware de gestionarea pachetelor si a alimentarii (vezi restrictiile de consum USB). Exista circuite de la Philips (ISP...) si Cypress, care sunt gandite sa fie interfatate precum o memorie RAM externa la un microcontroller. Pentru chip-ul de la Philips stiu ca exista un driver Linux, inclusiv pentru unele dispozitive de la Cypress. Nu stiu ce dimensiune au si daca pot fi compilate pentru un PIC. Dar cu un Atmel mai maricel cred ca ai avea mai multe sanse.

Link to comment
Share on other sites

Guest musaraf

AVRFREAKS.NET 2007 (AT90USB1287):

...despite it's widely mentioned as being a limited host, I didn't find any limitations as to the purpose of my project. I just took the Atmel-supplied sources they send to anyone who cares to email them and ask for that, and found a place where the MCU is analyzing the device class of the device connected to it, and determines if this device is what it expects on the other end. In the original version from Atmel it only accepts a mouse device class, i.e. a HID (then it enumerates it, and makes LEDs blink as you move the mouse - it even worked with my power greedy IntelliMouse Explorer!). But it was quite easy to change the expected interface IDs, and it successfully recognized a USB flash stick (mass storage device class), and even a PTP camera. As of today I have an almost complete implementation of PTP host protocol on the AT90USB1287, and while I can't say it was a bed of roses through all the way, it ended up working very nicely, commanding my Nikon D200 camera through USB like a charm. My prototyping setup is a AT90USBKey and an ICE MkII for JTAG debugging... quite simple actually.

 

Do yourself a favor and grab the USB host mouse sources from Atmel.

Link to comment
Share on other sites

Ca sa legam un periferic USB la un microcontroler (stick USB, webcam, adaptor WLAN, imprimanta) de ce ar fi nevoie pe partea hard? Pentru soft cred ca se poate lua un driver generic din Linux si analiza (sau compila pentru un microcontroler mai "mare" (PIC 18Fxxx, Atmega128 etc) ).Stiti de vreun PIC cu USB host? Am gasit un AVR cu asa ceva (AT90USB1287) - http://www.atmel.com/dyn/products/produ ... rt_id=3874si un IC de la Maxim, care merge ca USB host sau device (MAX3421E) - http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3639Sau se poate face totul in soft?

Cred ca USB2.0 host prin software pur nu poate fi vorba cu PIC, fie el cel mai puternic PIC din familie (DSPIC).Pentru cei ce utilizeaza DSP-uri adevarate exista niste circuite ce utilizeaza standardul ULPI care se pot programa prin software pentru a fi OTG, host sau device:http://www.smsc.com/main/catalog/usb3300.htmlsauhttp://www.nxp.com/products/connectivit ... ture/ulpi/
Link to comment
Share on other sites

Guest musaraf

VNC1L de la Vinculum - vorbeste FIFO, SPI sau UART, are firmware ptr. Flashdisk, si primeste comenzi ASCII foarte simple, gen DIR, CD, MKD etc. Se pare ca este pentru flashdiscuri si foto digitale, probabil ca are numai subsetul de comenzi USB pentru mass storage device.

 

FT8U100AX de la Comet - vreo 5$, USB1.1, ptr hub-uri USB (are interfata legacy ptr mouse/tast PS2 si USART).

 

ISP1504 de la Phillips - host, device sau OTG. high-speed (480 Mbps), full-speed (12 Mbps), si low-speed (1.5 Mbps) data rates, interfata pe 8 sau 12 pini.

 

A lucrat cineva cu ele (sau cu surorile lor)?

Link to comment
Share on other sites

Guest musaraf

Din cate se vede, nu prea exista o varianta simpla buna si ieftina pentru treaba asta. Atmel de-abia are vreo 3 modele cu host integrat, Microchip nu zice nimic, controlerele dedicate pentru host sint cam la prima generatie. Totusi un Vinculum sau ISP nu mi-ar strica :rock: , numai nu stiu daca trimit si in Romania.

Link to comment
Share on other sites

Cred ca poti cere si direct de la Philips. Eu asa le-am primit. Desi nu au sectiune speciala pe site, daca le spui ca esti interesat de un chip, e posibil sa-l trimita ca sample. Acum mi se pare ca divizia de semiconductori se numeste NXP.

Link to comment
Share on other sites

Guest musaraf

N-am mai cerut niciodata chipuri de sample, aveam impresia ca oricum cer degeaba. Dar se pare ca chiar merge.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines