- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PINFLAGSAB = 0x08; // FLAGA - EP2 Emtpy flag
PINFLAGSCD = 0xE0; // FLAGD - EP6 FULL flag
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PINFLAGSAB = 0x08; // FLAGA - EP2 Emtpy flag
PINFLAGSCD = 0xE0; // FLAGD - EP6 FULL flag