cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

Anonymous
Not applicable

 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

   
        
0 Likes
1 Solution
Anonymous
Not applicable

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

   

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

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

 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

0 Likes
Anonymous
Not applicable

 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

   
        
0 Likes
Anonymous
Not applicable

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

   

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

View solution in original post

0 Likes