Cypress技术论坛
直播中

刘璇

7年用户 176经验值
私信 关注
[问答]

FX3 ez-u*** SDK提供API初始化GPIO,使用API中的SPI相关功能无法使用

FX3 EZ USB SDK提供API初始化GPIO,使用SPI相关函数在API中不能使用,现在有解决方案吗?

以上来自于百度翻译


     以下为原文
  FX3 ez-u*** SDK provides API initialization GPIO, use the SPI related functions in the API can't use, now have a solution?

回帖(3)

徐睫郁

2019-1-2 16:38:57
我们无法清楚地理解你的问题。请重新声明。
您想使用GPIOS(位敲击)来实现SPI功能吗?

以上来自于百度翻译


     以下为原文
  We couldn't understand your question clearly. Please re-state.
Do you want to implement SPI functionality using the GPIOs(Bit-Banging)?
举报

刘璇

2019-1-2 16:58:02
引用: yahan52 发表于 2019-1-2 08:22
我们无法清楚地理解你的问题。请重新声明。
您想使用GPIOS(位敲击)来实现SPI功能吗?

对不起的,
我的问题是使用FX3 EZ USB SDK API提供初始化后的GPIF,然后使用SPI函数函数不能使用,现在使用GPIO模仿SPI。
由于需要使用高速读写操作,所以模仿SPI不能满足,有无解决方案?
谢谢你

以上来自于百度翻译


     以下为原文
  Sorry,
My problem is to use FX3 ez-u*** SDK API provided after the initialization GPIF, and then use the SPI function function can not be used, and now use the GPIO imitation of the SPI.
Due to the need to use high-speed read and write operations, so imitation of the SPI can not meet, with or without a solution?
 
 
Thank you
举报

徐睫郁

2019-1-2 17:03:16
引用: djiwqljd 发表于 2019-1-2 08:42
对不起的,
我的问题是使用FX3 EZ USB SDK API提供初始化后的GPIF,然后使用SPI函数函数不能使用,现在使用GPIO模仿SPI。
由于需要使用高速读写操作,所以模仿SPI不能满足,有无解决方案?

看起来你想要使用32位GPIF和SPI功能。
但是在FX3中,当GPIF II配置为32位模式时,SPI接口线不可用。然而,仍然有可能
使用SPI接口进行引导,然后将GPIF II配置为32位模式。
如果您的SPI接口需求不是用于引导目的,您仍然可以使用GPIOS获得SPI功能。
我们已经在SDK中提供了一个示例项目,其中我们使用4个GPIOS作为SPI用途。
参考这个路径中提供的项目: EZ-USB FX3 SDK  1.3固件SerialIFiFixCyfxUsBSPICOMMODEMODE
这对你有帮助吗?

以上来自于百度翻译


     以下为原文
  It looks like you want to use 32-bit GPIF and SPI Functionality.
But in FX3, SPI interface lines are not available when GPIF II is configured in 32-bit mode. However it is still possible to
use SPI interface for booting and then configure GPIF II to 32-bit mode.
 
If your SPI interface requirement is not for Booting purpose, you can still get the SPI Functionality using the GPIOs.
We have provided an example project in the SDK, in which we used 4 GPIOs for SPI purpose.
 
Refer the project provided in this path: EZ-USB FX3 SDK1.3firmwareserialif_examplescyfxu***spigpiomode
 
Is this helpful to you?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分