Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?
Moderator:
RSKV

Post Reply
Follow this topic



what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

西门吹牛奶 posted on 03 Mar 2012 5:44 AM PST
Top Contributor
34 Forum Posts

Hi,everyone,

in the enfpoint descriptor, wMaxPacketSize's bit 12:11 is the number of transaction in one microframe for isochrounous endpoint .

so what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint? does it have the same meaning? 

if so, when i set it to be 0x1c00---3 transactions in one microframe and 1024 maxpacketsize, the interrupt endpoint can't transfer anyword even i use the cyconsole.exe to test.

if the wMaxPacketSize's bit 12:11 for interrupt endpoint doesn't has the same connotation as the isochronous endpoiunt, the binterval define the minimum interrupt period as 125us. so 68013's interrupt endpoint  can only transfer one packet  in one microframe. obviously this is not right.

so i'm perplexed on the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint.

should somebody tell me? thanks a lot!




Re: what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

aasi posted on 06 Mar 2012 05:35 AM PST
Cypress Employee
1090 Forum Posts

If you send more than 1 packet in the microframe for iso and interrupt they're called high-speed high-bandwidth endpoints and the connotation is the same. How many packets are you trying to transfer and what is the behavior shown by Cyconsole.

Have you tried modifying the cystream firmware and have screamer/streamer do the transfer?

Regards,

Anand



Re: what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

西门吹牛奶 posted on 06 Mar 2012 06:02 PM PST
Top Contributor
34 Forum Posts

Hi,Anand,

I'd like to send 3 packets in one microframe,

In the MaxPacketSize, bit15:13 must be 000b, bit12:11 represent the packets in one microframe, so if I want to transfer 3 packets I would set it to be 11b, bit10:0 represents the maximum size of one packet, if I want the packet size is 1024, so the bit 10:0 should be 10000000000b. so in my case it would be 1c00h.

but if i set the MaxPacketSize to be 1c00h in the endpoint descriptor, from the cyconsole.exe i can't  even  see the pipes/endpoints.

later on i read the code of cystreamer, it sets the  MaxPacketSize to be 1400h. and it do works well.

furthermore, i have read the code of the cystreamer several days ago, then i developed my application software, amazingly the speed  approach 49MB/s with bulk transfer. ^_^

so i try to sue it in iso or interrupt transfer, but the interrupt only has 23.2MB/s.

anyhow, the 68013 is an excellent chip. ^_^

Best regards,

FuChy Ian

 



Re: what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

aasi posted on 06 Mar 2012 06:53 PM PST
Cypress Employee
1090 Forum Posts

Even though iso and interrupt endpoint have guaranteed bandwidth you would be able to get a maximum of around 24 MB/s only per endpoint (limited by spec). Bulk on the other hand doesn't have guaranteed bandwidth but as long as the USB doesn't have too many devices connected you should be able to speed around 48MB/s. Maximum possible for Bulk as per spec is 53MB/s (taking overhead into account) but most controller can't transfer this much.

Regards,

Anand



Re: what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

西门吹牛奶 posted on 07 Mar 2012 10:59 PM PST
Top Contributor
34 Forum Posts

Hello,Anand,

I know that the transfer theory about the iso and interrupt, and also the highest theoretical speed is 53.248MB/s.

I'm perplexed on the maxpacketsize in 68013. Although it matters little, I am still would like to grasp it.

Best regards,

Fuchy Ian



Re: what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

aasi posted on 07 Mar 2012 12:50 AM PST
Cypress Employee
1090 Forum Posts

Please clarify your doubt regarding the maxpacketsize of cy7c68013 so that I can clear it.

Regards,

Anand



Re: what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

西门吹牛奶 posted on 07 Mar 2012 03:47 AM PST
Top Contributor
34 Forum Posts

I'd like to send 3 packets in one microframe,

In the MaxPacketSize, bit15:13 must be 000b, bit12:11 represent the packets in one microframe, so if I want to transfer 3 packets I would set it to be 11b, bit10:0 represents the maximum size of one packet, if I want the packet size is 1024, so the bit 10:0 should be 10000000000b. so in my case it would be 1c00h.

but if i set the MaxPacketSize to be 1c00h in the endpoint descriptor, from the cyconsole.exe i can't  even  see the pipes/endpoints.



Re: what's the connotation of bit12:11 in wMaxPacketSize for a interrupt endpoint?

aasi posted on 07 Mar 2012 04:21 AM PST
Cypress Employee
1090 Forum Posts

00 is for 1 packet per microframe

01 is for 2 packets per microframe

10 is for 3 packets per microframe

Regards,

Anand






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20