发 帖  
原厂入驻New
[问答] PCLK怎么用
233 连接器 GPIF
分享
大家好,
用于P-端口的SAMTEC扩展连接器的引脚44是PGPIO(16),用作GPIF II接口的默认同步时钟。我能够测量和确认这个输出,同时修改“SLaveFioAsiNC”示例(调整到100 MHz输出),代码如下:
包括“CYU3PIB.H”
/--------------------------
CYU3PPIBCCROXYT PIBCHILL;CYU3PRESTROSTATUS SUT APIRATSTAtiON CYU-U3PY成功;/*初始化P-端口块。* / pibclock.clkdiv = 4;pibclock.clksrc = cy_u3p_sys_clk;pibclock.ishalfdiv = cyfalse;/*禁用DLL同步GPIF * / pibclock.isdllenable = cyfalse;apiretstatus = cyu3ppibinit(cytrue,&;pibclock);
我现在的工作在GPIO的操作和已使用“gpioapp”的例子为出发点。但是我不能够得到PCLK时钟输出信号我开始之前…它根本没有输出任何东西。我注意到,“gpioapp”示例使用“gpioclock”和所谓的“cyu3pgpioinit API。这些配置有什么干扰吗?

以上来自于百度翻译


     以下为原文
  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?  
0
2019-4-23 11:32:05   评论 分享淘帖 邀请回答

相关问题

1个回答
与GPIF一起使用时,PCLK使用情况与使用GPIO时不同。在GPIO的情况下,可以将它们配置为复杂的GPIO,然后在它们上驱动PWM、单次等信号。
您可以将其配置为简单的GPIO,但在您的情况下,如果您正在寻找生成时钟信号类型的应用程序,那么简单的GPIO可能不服务于此目的。
请让我们知道你的最终申请,以便我们能更好地了解你正在寻找什么。
当做,
阿南德

以上来自于百度翻译


     以下为原文
  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
2019-4-23 11:40:26 评论

举报

只有小组成员才能发言,加入小组>>

365个成员聚集在这个小组

加入小组

创建小组步骤

关闭

站长推荐 上一条 /10 下一条

快速回复 返回顶部 返回列表