Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: AT91SAM7S256 USB packet size
PostPosted: Thu Jun 02, 2011 5:02 pm 
Offline

Joined: Fri Jan 28, 2011 2:50 pm
Posts: 1
Hello;

I have a design based on an AT91SAM7S256 ARM micro that is both powered and connects with the PC through USB. It acquires info from some MEMS and sends it to the PC.

I am having some problems regarding the size of the packet sent from my micro to the PC host. The maximun data packet size is 32 bytes and I cannot configure it to 64 bytes, which is the lenght that I need.

I am reading the AT91SAM7256 datasheet, but I do not understand which registers I have to modify.

Anybody knows what can I do. Thank you very much!!!!!


Top
 Profile  
 
 Post subject: Re: AT91SAM7S256 USB packet size
PostPosted: Fri Jun 03, 2011 6:20 pm 
Offline

Joined: Thu Mar 02, 2006 1:32 pm
Posts: 127
Location: Switzerland
Hi

The SAM7 have fixed maximum endpoint FIFO lengths:
- endpoints 0 and 3 have have size 8 bytes.
- endpoints 1 and 2 have size 64 bytes.

The endpoints lengths are not configurable in the device (the maximums are the maximum FIFO sizes implemented). The endpoint length used is controlled in the driver software (and potentially limited by the HW if set too high). This suggests that the driver SW is not working with the 64 bytes but instead is working with 32 bytes - check also the details in the configuration descriptor used during enumeration since the end point size is also defined here and the host would therefore also restrict the packet size sent based on this.

Regards

Mark

www.uTasker.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: