Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > PINFLAGS inconsistency between FX2 TRM and AN

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



PINFLAGS inconsistency between FX2 TRM and AN
Moderator:
RSKV

Post Reply
Follow this topic



PINFLAGS inconsistency between FX2 TRM and AN

FGLbbq1A posted on 18 Nov 2011 4:39 PM PST
Member
4 Forum Posts

 Hello,

 

TRM: EZ-USB_TRM2.pdf

AN: AN613453.pdf (attached)

 

TRM section 15.5.3 says the EP2 empty flag is:

  1000 (binary) = 0x8 (hex)

 

AN613453's source code listing says

  PINFLAGSCD = 0xE0; // FLAGD - EP2 Emtpy flag

Which implies the EP2 empty flag is

  1110 (binary) = 0xE (hex)

 

Which is correct?

 

  EP2EF = 1000 = 0x8 [TRM]

  EP2EF = 1110 = 0xE [AN613453]

 

Thank you,

 

Chris

 



Re: PINFLAGS inconsistency between FX2 TRM and AN

aasi posted on 18 Nov 2011 05:29 PM PST
Cypress Employee
1090 Forum Posts

 In the App note it seems the comments got swapped between the 2 lines. If you look at it, it should be FLAGA = EP2EF and FLAGD = EP6FF. Will get it fixed.

Regards,

Anand



Re: PINFLAGS inconsistency between FX2 TRM and AN

FGLbbq1A posted on 18 Nov 2011 05:50 PM PST
Member
4 Forum Posts

 Anand,

 

Thank you for your quick reply.  Can you please be a little more specific for me (I am new to this) and retype the two lines in their entirety as they should have appeared in the AN?  Presently they say:

 

  PINFLAGSAB = 0x08; // FLAGA - EP6 FULL flag

  PINFLAGSCD = 0xE0; // FLAGD - EP2 Emtpy flag

What should these two lines read after they are corrected?

 Thank you,

 

Chris

 

 



Re: PINFLAGS inconsistency between FX2 TRM and AN

aasi posted on 18 Nov 2011 05:53 PM PST
Cypress Employee
1090 Forum Posts

   PINFLAGSAB = 0x08; // FLAGA - EP2 Emtpy flag

  PINFLAGSCD = 0xE0; // FLAGD - EP6 FULL flag






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: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20