How can I synchronize video using CY7C68013A USB?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
     I am trying to get video data from camera using CY7C68013A.   
   
        
   
     [Hardware connection]
Camera Sensor    CY7C68013A
  PIXCLK------------>  IFCLK
  LINE_Sync--------> SLWR
  FRAME_Sync-----> PKTEND
  Data0..7-----------> FD0..FD7
   
   

   
        
   
    [Firmware/Setting]   
   
    I am using EP6IN, AutoIN,BULK transfers, 512 byte 4x buffered.    
I referred “9.Slave FIFO” in Technical Manual.    
    
   
    [Windows program]   
   
    It was made window program(Host) using streamer that provided by Cypress. This is pretty much adapted from the Streamer example.    
    
   
    [Question /Problem]   
   
    Window program received data but can’t be synchronized.   
   
    (Please, See attach image file)   
   
    I want to get images like left side image, but I got images like right side image and the start pixel changed everytime.   
   
        
   
    How can I get synchronized image(video)?    
    
   

   
        
0 Likes
5 Replies
Anonymous
Not applicable

I’m trying to get video from camera using CY7C68013A.

   

Hardware connection
Image Sensor -----CY7C68013
PIXCLK------------>IFCLK
LINE_Sync-------->SLWR
FRAME_Sync------>PKTEND
Data0..7----------->FD0..FD7

   

Firmware-Setting
I am using EP6IN, AutoIN,BULK transfers, 512 byte 4x buffered.
I referred “9.Slave FIFO” in Technical Manual.

   

Windows program
It was made window program(Host) using streamer that provided by Cypress. This is pretty much adapted from the Streamer example.

   

Problem
Window program received data but can’t be synchronized.
(Please, See attached image file)
I want to get images like left side image, but I got images like right side image and the start pixel changed everytime.

   

How can I get synchronized image(video)?
 

0 Likes
Anonymous
Not applicable

The easiest way is to set width and height of the image such that (width x height) mod 512 is not zero. Then any packet received which is not 512 bytes long is the last in the frame.

0 Likes
Anonymous
Not applicable

Try addind a header at the start of a frame before sending frame to pc.If it is costing you bandwidth try adding header once in multiple frames.

   

-shub

0 Likes
Anonymous
Not applicable

 Hi James,

   

Are developing a Generic UVC device or a custom class video device?

   

 

   

Thanks

   

Subbarao.

0 Likes
Anonymous
Not applicable

This thread is very old and I doubt James is monitoring it.

   

Going by his statement that he is using Streamer based host application he is most probably using CyUSB.sys hence a custom video class implementation.

   

Cheers,

   

Anand

0 Likes