Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > How to make a simple GPIF setup

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



How to make a simple GPIF setup
Moderator:
RSKV

Post Reply
Follow this topic



How to make a simple GPIF setup

m8online posted on 11 Feb 2010 10:44 AM PST
Member
4 Forum Posts
Hello,

We have a setup with a cmos sensor connected to the FX2 (CY7C68013A-56-LFX).

We have made the following connections:


Image sensor Data <==> FIFO data
Image sensor Frame_valid <=> RDY1
Image sensor line_valid <=> RDY2
Image sensor pixel clk <=> IFClk

What we want to do should be simple:

If both line_valid and frame_valid (RDY1 and RDY2) are high pixel data should be clocked into endpoint 6.
No flow control has to be implemented as the image sensor does not support flow control.

Now we have been looking at the GPIF documentation. Here we can see that it can do millions of things. But we did not manage to find out how to make such a simple setup.

Also I took a look at the GPIF editor. There are either some things missing, or I did not manage to find them.

What I think that needs to be done by the GPIF is following:

1. use RDY1 and RDY2 to gate the /SLRD
2. somehow disconnect the FifoAddr1 and FifoAddr0 and set them by software to point to the FIFO for endpoint6

I did not find out how to do this through the GPIF editor or directly by setting the registers.

Can somebody help me get started with this?




Re: How to make a simple GPIF setup

rushilnoronha posted on 28 Mar 2010 10:17 AM PST
Member
3 Forum Posts
HI,
I'm doing exactly the same thing as you are.Attempting to interface a USB microcontroller with a CMOS image sensor.However I'm trying a different approach.Instead of using the GPIF method( Internal Master mode) we're trying to use the USB controller in the SLAVE FIFO mode i.e. the CMOS image sensor is the master.Since flow control is not an issue at all, this may work well.
However we're still in the nascent stages, if the GPIF has worked for you stick with it and do let me know ....we might consider switching over.

Re: How to make a simple GPIF setup

m8online posted on 28 Mar 2010 11:14 AM PST
Member
4 Forum Posts
Hi,

No, unfortunately nobody seems to know how to get this done. We are also switching to the slave FIFO mode. :-(

Re: How to make a simple GPIF setup

rushilnoronha posted on 07 Apr 2010 10:14 PM PST
Member
3 Forum Posts
HI,
Since you're using Micron image sensors, I'm assuming it's using the standard SCLK,SDATA protocol to right?I've been through the datasheet and can't seem to find out if it will automatically start transferring data by default?What I mean is , are any interfacing signals going to be needed to initiate data transfer or does the default setting take care of that?





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