Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > strategy to handle the specific data size with PKTEND

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



strategy to handle the specific data size with PKTEND
Moderator:
RSKV

Post Reply
Follow this topic



strategy to handle the specific data size with PKTEND

Tomo3 posted on 28 Mar 2012 10:48 PM PST
Member
3 Forum Posts
Hi, In several cases, the FX3 does not recognize the data which are sent with PKTEND=Low & SLWR=Low or ZLP in SynchronousSlaveFIFO. With FIFO size 1024 x 16bytes, I try sending 1024 x N bytes(N is integer) data as a short packet, though, the FX3 does not receive whole data as well as sending 1024 x N bytes data with ZLP. It seems that the FX3 ignores the PKTEND with 1024bytes. In addition, the size of 1024 x 16 x N bytes can be received only with Zero Length Packet. It looks OK so far. Other data size exept for 1024 x Nbytes can be received as a short packet. Do you have any solution how to handle the data size 1024 x N bytes? Regards,


Re: strategy to handle the specific data size with PKTEND

DiMonstr posted on 28 Mar 2012 01:15 AM PST
Member
3 Forum Posts

I suggest generate a signal PKTEND time out of the package. The sense of how to assert the signal PKTEND, when the FIFO to transfer to the FX3 is EMPTY and current usb endpoint FIFO is NOT EMPTY, during a preset number of cycles the timer.



Re: strategy to handle the specific data size with PKTEND

DiMonstr posted on 28 Mar 2012 01:19 AM PST
Member
3 Forum Posts

I suggest generate a signal PKTEND time out of the package. The sense of how to assert the signal PKTEND, when the FIFO to transfer to the FX3 is EMPTY and usb endpoint FIFO FX3 is NOT EMPTY, during a preset number of cycles the timer.



Re: strategy to handle the specific data size with PKTEND

Tomo3 posted on 28 Mar 2012 04:03 AM PST
Member
3 Forum Posts
Thanks for the advise, DiMonstr. You mean that it is better to assert PKTEND with some delay? My understand is that the PKTEND should be asserted with the end of data, and the data size I want to send is just 1024bytes or multiples of 1024bytes. But the data size sent as a short packet are not received by FX3 at any time. Only the data size corresponding to the size of FIFO defined in the FX3 (size is 1024 x 16bytes) can be received with ZLP by FX3.

Re: strategy to handle the specific data size with PKTEND

DiMonstr posted on 28 Mar 2012 04:48 AM PST
Member
3 Forum Posts

Yes, sure. I implemented for controller FX2. For it there is no limit as to assert the signal PKTEND relative to SLWR. I can not really assert whether or not work that way FX3. The documentation is written in the FX3, the signal PKTEND must be set in sync with the SLWR and the last word of data. Do you both work? I do not have board DVK CYUSB3KIT-001, can not test:( Soon to coming ...



Re: strategy to handle the specific data size with PKTEND

Tomo3 posted on 28 Mar 2012 05:36 AM PST
Member
3 Forum Posts
Regarding to FX2, your are right. Actually, the behavior between FX2 and FX3 seems different. FX3 works collectly in most cases following the data sheet. But with the specific data size ( at this time, data size is multiples of 1024 bytes ), that does not work even though the relationship of PKTEND to SLWR is exactlly following the data sheet.




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.