Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > 16bit and 32bit GPIF configurations

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



16bit and 32bit GPIF configurations
Moderator:
RSKV

Post Reply
Follow this topic



16bit and 32bit GPIF configurations

vivenoma posted on 28 Jan 2013 2:43 AM PST
Senior Member
12 Forum Posts

Hello,

    I have 2 GPIF configurations I'd like to use in an application. The first GPIF configuration only uses 16 bits so that the SPI peripheral is available. However the second 2 GPIF configuration that I change to by calling CyU3PGpifDisable(CyTrue); and CyU3PGpifLoad() enters a weird mode where it does record 32 bits of data to DMA buffers however the top 16 bits are equivalent to the lower 16 bits. If I bypass loading the 16bit GPIF config and go straight to the 32bit config everything is fine.

When I initialize the device with CyU3PDeviceConfigureIOMatrix(), isDQ32Bit is set to true. Is there any way to toggle isDQ32Bit when I change between the 2 different GPIF configurations? The reason I ask is because it is my understanding that CyU3PDeviceConfigureIOMatrix() can only be called once.

Thank you




Re: 16bit and 32bit GPIF configurations

Lumpi6 posted on 28 Jan 2013 03:15 AM PST
Top Contributor
183 Forum Posts

Hi Vivenoma,

you can call IoMatrix... more than one time. That is necessary to switch between 16-/32-bit Mode of GPIF interface and also to activate/deactivate the peripheral SPI interface. That stuff is already discussed in this forum, see following post....

http://www.cypress.com/?app=forum&id=167&rID=58084

regards,

lumpi






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.