1 Reply Latest reply on Sep 10, 2017 10:59 PM by srnt

    FX2 accesing additional data in control command

    wk_2711691

      I would like to send up to 8 bytes of data in control command to FX2 using additional data field. Up to four bytes the mValue and mIndex field can be used but for more, additional data field is needed.

      What is the location of the received bytes?

        • 1. Re: FX2 accesing additional data in control command
          srnt

          Hello,

           

          I assume that you are using the FX2LP (CY7C68013A) chip. Please correct me if I am wrong.

           

          While using control commands, the first eight bytes of data are loaded into the SETUPDAT register. These eight bytes are as follows:

           

          Byte 0: bmRequestType

          Byte 1: bRequest

          Byte 2: wValue

          Byte 4: wIndex

          Byte 6: wLength

           

          When more than 8 bytes are to be transferred during a control transfer, the additional data gets loaded into the endpoint zero (EP0) buffer.

           

          Best regards,

          Srinath S