完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Hai,我正在尝试评估PSoC SPI功能。我使用CY8CKIT-050套件。我正在使用find示例项目下的SPILY设计示例。与PSoC创建者3一起工作。
LCD上的显示是空白的。在调试期间,观察到执行停止。 而(!)(SPISSRead TXXSTATUS()和SpIsStsScript); 寻求帮助,附上项目文件夹。 螺柱设计01.ZIP 2.5兆字节 以上来自于百度翻译 以下为原文 Hai, I am trying to evaluate the Psoc SPI functionality. I am using CY8CKIT-050 KIT for the same. I am using the SPI_Design Example under the find example project. Working with Psoc creator 3. The display on the LCD is blank. During debugging, observed the execution halts at. while(!(SPIS_ReadTxStatus() & SPIS_STS_SPI_DONE)); Help is sought, project folder is attached herewith.
|
|
相关推荐
8个回答
|
|
您正在尝试检查从属设备的传输(Tx)状态。更好的检查SPIMUL*Read TXSTATUS()
鲍勃 以上来自于百度翻译 以下为原文 You are trying to check transmission (Tx) state of the slave. Better check SPIM__ReadTxStatus() & SPIM_STS_SPI_DONE Bob |
|
|
|
你做了代码示例文档中描述的第三步吗?
三。连接适当的引脚(MyMISO到Si-MISO,MYMOSI到SO MOSI,MY-SSCK到SY-SLK MSESS到SSESS)。 在这个代码示例中,SPI主机(SPIM)控制SPI从机(SPI)并发送/接收数据。SPIS将不接收任何数据而不需要第三步。 当做, 诺里基 以上来自于百度翻译 以下为原文 Did you do the 3rd step described in the Code Example document? 3. Connect the appropriate pins (m_miso to s_miso, m_mosi to s_mosi, m_sclk to s_sclk m_ss to s_ss). In this code example, the SPI Master (SPIM) controls the SPI Slave (SPIS) and sends/receives data. The SPIS would not receive any data without the 3rd step. Regards, Noriaki |
|
|
|
numuwewr 发表于 2018-12-17 19:22 我认识到你正在使用PSoC创建者3 SP2。PSoC Creator的版本没有代码示例文档。你能用一种新版本的PSoC Creator吗?我确认PSoC Creator 3.3在下面的位置有代码示例文档。 C:程序文件(x86) CyPress PSoC创建者 3.3 PSoC创建者示例 SAMPPLORDES SPILY设计SPILY设计CysN 当做, 诺里基 以上来自于百度翻译 以下为原文 I recognize that you are using PSoC Creator 3.0 SP2. That version of PSoC Creator has no code example document. Can you use a newer version of PSoC Creator? I confirmed PSoC Creator 3.3 has the code example document at following location. C:Program Files (x86)CypressPSoC Creator3.3PSoC CreatorexamplessampleprojectsSPI_DesignSPI_Design.cydsn Regards, Noriaki |
|
|
|
Hai Bob 非常感谢你的帮助/建议,现在程序不停地执行。LCD显示的数据均为0,主从接收数据为0。我把所有的主从线都打了回来。 以上来自于百度翻译 以下为原文 Hai Bob, Thanks indeed for the help/suggestion, now the program executes without any halt. However, the data displayed on the LCD are all 0s. The received data by both the master and slave is 0. I have externally looped back all the master and slave lines. |
|
|
|
numuwewr 发表于 2018-12-17 19:22 Hai Noriaki Tanaka 谢谢你的回复。我保证了。所有必要的引脚都已被回环。 以上来自于百度翻译 以下为原文 Hai Noriaki Tanaka, Thank you for your reply. I have ensured it. All necessary pins have been looped. |
|
|
|
numuwewr 发表于 2018-12-17 19:31 再次感谢Noriaki Takana, 我已经从查找示例项目中取出了这个项目,我在附件中已经说明了同样的内容。然而,在项目下的工具包(CY8CITK-050套件)没有SPI的例子。无论如何,我将安装PSoC创建者3.3或PSoC创建者4,正如您所建议的,继续进行。一定会更新观察和结果之后。 以上来自于百度翻译 以下为原文 Thanks again Noriaki Takana, I have pulled out the project from find example project, I have illustrated the same in the attachment. However, in the projects under the Kits(CY8CKIT-050 KIT ) there are no examples for SPI. I will anyways install Psoc creator 3.3 or Psoc creator 4 as you suggested and go ahead. Will certainly update the observations and findings thereafter. |
|
|
|
我检查了CY8CKIT-050的示意图,发现DVK板可以为SAR ADC提供1.0uF旁路电容,如下所示。 请确认PIN头J43和J44是否附接,如果附接,请跳过跳线。 这些跳线分别连接到MyMISO和MYSCK,1.0UF电容可能影响到1MHz时钟。 当做, 诺里基 以上来自于百度翻译 以下为原文 I checked the schematic of CY8CKIT-050 and found the DVK board can have 1.0uF bypass capacitor for the SAR ADC as follows. Please confirm if the pin headers J43 and J44 are attached and remove jumpers if attached. These jumpers are connected to m_miso and m_sck respectively and 1.0uF capacitor may affects to the 1MHz clock. Regards, Noriaki |
|
|
|
Hai Noriaki Tanaka 你猜怎么着?拆卸跳线后,工作就如预期的那样。1UF电容器将SCLK调到地面作为衰减时钟线的滤波器。非常感谢。假设你是日本人,“杜莫阿里加图”。 为了那些可能遇到类似情况的人,让我总结一下我必须克服的2个障碍: (1)替换(!)(SPISTHEXTXXSTATUS(和);SPISJSSSTSY SPIZIN);(SPimaRead TxStUsUs)和; 谢谢你,鲍伯。 (2)跳远运动员J43和J44。再次感谢Noriaki Tanaka。 从今以后,我还将仔细检查工具箱的原理图。 当做, Samson Richard。乙 以上来自于百度翻译 以下为原文 Hai Noriaki Tanaka, Guess What? after removing the jumpers, The working was as expected. The 1uF Capacitor shunting the SCLK to the ground was acting as a filter attenuating the clock line. Thank you very much. Presuming you are a japanese, 'Doumo arigatou'. For the benefit of those who might encounter a similar case, let me summarize the 2 hurdles i had to overcome:- (1) replace while(!(SPIS_ReadTxStatus() & SPIS_STS_SPI_DONE)); with while(!(SPIM_ReadTxStatus() & SPIM_STS_SPI_DONE)); Thank you Bob. (2) Open Jumpers J43 and J44. Thanks again Noriaki Tanaka. Henceforth, I shall also scrutinize the schematics of the kit. Regards, Samson Richard. B |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2103 浏览 1 评论
1849 浏览 1 评论
3667 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1784 浏览 6 评论
1534 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
566浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
420浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
435浏览 2评论
381浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
913浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 23:30 , Processed in 1.262662 second(s), Total 63, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号