Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > Problem with GPIF II in master mode

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



Problem with GPIF II in master mode
Moderator:
RSKV

Post Reply
Follow this topic



Problem with GPIF II in master mode

korvet28 posted on 06 Dec 2012 3:46 AM PST
Member
2 Forum Posts

Hello!

I need to design FX3 as a bus-master to perform adressed reading and writing operations to external memory via A/D-MUX bus. But I don't understand perfectly how GPIF should differ if DMA wants to perform read or write operation. I tried to make GPIF project, where TH0 is for write operations, but TH1is for read operations. Initial IDLE state has two outgoing triggers: DMA_RDY_TH0 and DMA_RDY_TH1, which select and start read or write cycle. But GPIF II Designer shows error message "DMA_RDY_TH0 and DMA_RDY_TH1 cannot used together in the outgoing equations from the state IDLE ". I tried to do some experiments to workig around this error, but unsuccessfully.

Would you please help me to understand how to perform master reading and writing operations on A/D-MUX bus using Sockets? I attach the project to illustrate this problem.

Thanks.




Re: Problem with GPIF II in master mode

RSKV posted on 09 Dec 2012 07:55 AM PST
Cypress Employee
655 Forum Posts

Hi,

If there are any flags coming from the slave device then we can use those flags to decide read operation.

But in your case,you may not be having any flags coming from the slave device to indicate read opertion since the slave device is a memory. Please correct me if I am wrong.

In this case, I think it is better to develop two different state machines, one for read and one for write and load them based on read or write operation.

Thanks,

sai krishna.



Re: Problem with GPIF II in master mode

korvet28 posted on 11 Dec 2012 08:36 AM PST
Member
2 Forum Posts

Many thanks! In my case the host decide either read or write GPIFII. Did you measure the time that required for reconfig the GPIFII?



Re: Problem with GPIF II in master mode

RSKV posted on 12 Dec 2012 11:23 PM PST
Cypress Employee
655 Forum Posts

We have not measured the time taken for re-configuring the GPIF II yet. I will update you as soon as I measured it.

Thanks,

sai krishna.






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.