Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > GPIF Pull-ups/Pull-downs

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



GPIF Pull-ups/Pull-downs
Moderator:
RSKV

Post Reply
Follow this topic



GPIF Pull-ups/Pull-downs

ja4fs posted on 03 Jan 2013 5:43 AM PST
Member
8 Forum Posts

Is it possible to use a pull-up or pull-down on a GPIO that is used by the GPIF?  If so, how do I go about implementing this?




Re: GPIF Pull-ups/Pull-downs

ja4fs posted on 03 Jan 2013 06:57 AM PST
Member
8 Forum Posts

I am getting a configuration error from CyU3PDeviceConfigureIOMatrix() when any of the pins that are part of the GPIF are enabled for GPIO. In the Programmer's Manual it states that when a block of pins are allocated into a group (GPIF, UART, etc) then "unused pins may be overridden as GPIO" - the implication being that a pin can't be both.



Re: GPIF Pull-ups/Pull-downs

AssemblyRequired posted on 08 Jan 2013 05:58 AM PST
Top Contributor
37 Forum Posts

If you wanted to use GPIF pins as GPIO you would need to call CyU3PDeviceGpioOverride() for each pin before calling CyU3PPibInit() - and not include any of those pins in the call to CyU3PDeviceConfigureIOMatrix().

But it sounds like what you want is to keep the pins as part of GPIF and merely change how they are driven. Correct?

Steve


 



Re: GPIF Pull-ups/Pull-downs

ja4fs posted on 09 Jan 2013 06:37 AM PST
Member
8 Forum Posts

Correct, I would like to keep the pins as part of the GPIF and still take advantage of the internal pull-up/pull-down capabilities.

Here is the answer I got from Cypress technical support:

The CyU3PDeviceGpioOverride() API should be used followed by the CyU3PGpioSetSimpleConfig() API to configure an I/O pin used by the GPIF.

The CyU3PDeviceConfigureIOMatrix() API cannot access the pins which are allocated into a group.

 

 



Re: GPIF Pull-ups/Pull-downs

kalev posted on 10 Jan 2013 05:49 AM PST
Senior Member
15 Forum Posts

You can use CyU3PGpioSetIoMode for GPIF controlled pins as well.

Kalev






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.