Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > How can I synchronize video using CY7C68013A USB?

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



How can I synchronize video using CY7C68013A USB?
Moderator:
RSKV

Post Reply
Follow this topic



How can I synchronize video using CY7C68013A USB?

James Lee posted on 14 Oct 2010 10:03 PM PST
Member
2 Forum Posts
I am trying to get video data from camera using CY7C68013A.
 

 
[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)?
 

 



How can I synchronize video using CY7C68013A USB?

James Lee posted on 14 Oct 2010 11:59 PM PST
Member
2 Forum Posts

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)?
 



Re: How can I synchronize video using CY7C68013A USB?

simongregory posted on 26 Nov 2010 08:24 AM PST
Member
4 Forum Posts

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.



Re: How can I synchronize video using CY7C68013A USB?

Shub posted on 05 Jan 2011 10:09 AM PST
Cypress Employee
27 Forum Posts

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



Re: How can I synchronize video using CY7C68013A USB?

Poturaju posted on 22 Dec 2011 09:38 PM PST
Top Contributor
28 Forum Posts

 Hi James,

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

 

Thanks

Subbarao.



Re: How can I synchronize video using CY7C68013A USB?

aasi posted on 23 Dec 2011 01:39 PM PST
Cypress Employee
1090 Forum Posts

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






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: KXP; Secondary Owner: VWA; Sunset Date: 01/01/20