4 Replies Latest reply on Jul 12, 2017 10:32 AM by Madhu Lakshmipathy

    FX3 AN75779 UVC example problem

    kuangy_1432866

      Hello,

         

        I have changed the firmware provided in AN75779.zip  to meet the requirement of my own sensor with the following features:

         

      1.16-bit synchronous parallel data interface

         

      2.16 bits per pixel

         

      3.YUY2 color space

         

      4.1920*1080 pixel resolution

         

      5.30 frames per second

         

      6.Active high line valid signals,Active low frame valid signal.

         

      7.Positive clock edge polarity

         

      For 16-bit synchronous parallel data interface, I go to the Interface Definition tab in GPIF II Designer and choose the 16 Bit option for Data Bus Width, then i go to the state machine tab, change the counter limit value of LD_DATA_COUNT and LD_ADDR_COUNT to 8183.Finally, i update the cyfxgpif2config.h in original firmware project,andmake sure the iomatrix configuration in the firmware has the isDQ32Bit parameter set to CyFalse.

         

      For 1920*1080 pixel resolution, I change the related content of descriptors as follow,

         

             /* Class specific Uncompressed VS format descriptor */
             0x10,                           /* X dimension of the picture aspect ratio; Non-interlaced */
             0x09,                           /* Y dimension of the pictuer aspect ratio:Non-interlaced */

         

            /* Class specific Uncompressed VS frame descriptor */
             0x80, 0x07,                     /* Width in pixel */
             0x38, 0x04,                     /* Height in pixel */

         

      and changed the probe control setting.

         

      My sensor can output the data.After all, I build the firmware project and download the .img file into FX3 and preview real-time video use software like AMCap/VirtualDub, the system could work, the video is abnormal,the image is attached,it like the U data and V data in the video are inverse. And the AMCap/VirtualDub could not read the video information like resolution.

         

      I don't knoe what I should modify.

         

      I hope someone could help me, Thank you.