On May 2, 8:59 am, rg.jo...@rogers.com wrote:
> On May 1, 11:18 am, linnix <m...@linnix.info-for.us> wrote:
>
>
>
> > On May 1, 6:48 am, rg.jo...@rogers.com wrote:
>
> > > On Apr 28, 11:32 pm, rg.jo...@rogers.com wrote:
>
> > > > Hi,
>
> > > > I would like to discuss with anyone who has some experience
> > > > interfacing theAT90USB1287to various USB devices.
>
> > > > Have you found any that don't work?
>
> > > > I have two devices which are detected correctly - Lexar 32MB jump
> > > > dirve and a Lenovo USB sound device .... I have two that are don't get
> > > > detected correctly and they are a 512MB Imation flash drive and a
> > > > Gigafast 102.11g wireless fob.
>
> > > > The code goes screwy in this section when one of the "bad" devices is
> > > > plugged in (snippet from the atmel demo programs)
>
> > > > case DEVICE_UNATTACHED:
> > > > for (c=0;c<MAX_EP_NB;c++) {ep_table[c]=0;}// Reset PIPE
> > > > lookup table with device EP addr
> > > > Host_clear_device_supported(); // Reset Device status
> > > > Host_clear_configured();
> > > > Host_clear_device_ready();
> > > > Usb_clear_all_event(); // Clear all software
> > > > events
> > > > Usb_enable_vbus(); // Give at least device
> > > > power supply!!!
> > > > if(Is_usb_vbus_high())
> > > > { device_state=DEVICE_ATTACHED; } // If VBUS ok goto to
> > > > device connection expectation
> > > > break;
>
> > > > So when it hits Usb_enable vbus(); the jtag mkii goes awry ...
>
> > > > Any one else run into this - I am using a AT90USBKEY - I am using the
> > > > latest code from Atmel and winavr ...
>
> > > > I was runing the key on a 9v battery but did switch to a wallwart just
> > > > to be sure and no diff..
>
> > > > Glenn
>
> > > Am I the only one using the AT90USBKEY for host mode? 
>
> > We are getting a prototype board for the chip, but not ready yet.
>
> > > It appears that plugging in some devices and attempting to apply power
> > > causes theAT90USB1287to reset.
>
> > Probably watchdog reset.
>
> > > Can any one confirm if this is a known problem?
>
> > It sounds like a software issue.
>
> Hi Thanks for the reply ...
>
> I don't think it is the software as some devices work okay ... It
> appears as if the mcu is being reset when vbus is being applied - I am
> going to check the descriptors (of the problem devices) for their
> power requirements.
>
> Glenn
Works
Lexar 32 MB Flash drive - 90ma
Lenovo USB Sound device - 100ma
Microsoft Optical mouse - 100ma
Doesn't work
Imation 512 MB Flash drive - 200ma
Trendnet 424UB 802.11b/g - 400ma
GigaFast WF748-CUI 802.11b/g - 500ma
Glenn