Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > PCLK usage

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



PCLK usage
Moderator:
RSKV

Post Reply
Follow this topic



PCLK usage

msharpe posted on 24 Apr 2012 2:03 PM PST
Member
9 Forum Posts

Hi everyone,

 

Pin 44 of the Samtec expansion connector for the P-port is p_gpio[16] and used as the default synchronous clock for the GPIF II interface.  I was able to measure and confirm this output while modifying the "SlaveFifoAsync" example (adjusted to a 100 MHz output) with the following part of code:

 

#include "cyu3pib.h"

//---------------------------

 

CyU3PPibClock_t pibClock;
CyU3PReturnStatus_t apiRetStatus = CY_U3P_SUCCESS;

/* Initialize the p-port block. */
pibClock.clkDiv = 4;
pibClock.clkSrc = CY_U3P_SYS_CLK;
pibClock.isHalfDiv = CyFalse;
/* Disable DLL for sync GPIF */
pibClock.isDllEnable = CyFalse;
apiRetStatus = CyU3PPibInit(CyTrue, &pibClock);

 

 

I am now  working on GPIO manipulation and have been using the "GpioApp" example as a starting point.  However I am not able to get the PCLK to output the same signal I was getting before... it isn't outputting anything at all.  I noticed that the "GpioApp" example uses a "gpioClock" and calls the "CyU3PGpioInit" API.  Are these configurations somehow interfering with eachother?  




Re: PCLK usage

aasi posted on 28 Apr 2012 08:19 PM PST
Cypress Employee
1073 Forum Posts

The PCLK usage case when used with GPIF is different than when you used it as a GPIO. In the case of GPIO you can configure them as complex GPIO and then drive signals on them PWM, one shot etc.

You can configure it as simple GPIO but in your case if you're looking at generating clock signal kind of application then simple GPIO might not serve the purpose.

Please let us know your end application so that we can understand better as to what you're looking for.

Regards,

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.