完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
用于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? |
|
相关推荐
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 |
|
|
|
只有小组成员才能发言,加入小组>>
752个成员聚集在这个小组
加入小组2070 浏览 1 评论
1826 浏览 1 评论
3639 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1761 浏览 6 评论
1512 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
510浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
360浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
410浏览 2评论
357浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
857浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 20:45 , Processed in 0.833480 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号