完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,鲍伯,
我使用CYC8KIT-049(42xx)插入我自己的板,它有三个SPI设备共享同一个SCB SPI主机。SS0中的一个是用16位数据来表示摩托罗拉的LED矩阵。在SS1和SS2是两个微芯片CAP1128 CAPSENSE按钮控制器,它也讲摩托罗拉,但具有8位数据。SCB初始化为未配置的。我的代码与SS1的LED矩阵和CAP1128一起工作,并且在SS2中有相同的代码来操作。我也有一个UART吐出调试信息通过USB串行,显示按钮活动。我的问题是PSoC将不运行SS2引脚,它只是坐在高处。我用一个逻辑分析仪来捕捉这个罪犯,并确保它不干扰我的板,我拔出了049个板,仍然没有SS2上的波形。附上我的代码。我已经评论了与LED矩阵和工作CAP1128交互的调用,以简化。如有任何建议,将不胜感激。 CAP+LeDS01F.Cyrj.CaseVo.01.Zip 792.3 K 以上来自于百度翻译 以下为原文 Hi Bob, I am using the CYC8KIT-049 (42xx) plugged into my own board, which has three SPI devices sharing the same SCB SPI Master. The one at SS0 is a LED matrix which speaks Motorola with 16 bit data. At SS1 and SS2 are two Microchip CAP1128 capsense button controllers, which also speak Motorola, but with 8-bit data. SCB is initialized as Unconfigured. My code works with the LED matrix and the CAP1128 at SS1, and I have identical code to operate that at SS2. I also have a UART that spits debug info over the USB serial, showing button activity. My problem is that the PSOC will not operate the SS2 pin, it just sits high. I used a logic analyzer to catch this culprit, and to ensure that it wasn't interference on my board, I unplugged the 049 board and still no waveform on SS2. My code is attached. I've commented out the calls to interact with the LED matrix and the working CAP1128, to simplify. Any advice would be much appreciated.
|
|
相关推荐
21个回答
|
|
子璇ALICE 发表于 2018-11-26 19:33 嗨,戴夫, 好吧,现在让我们看看其他一些东西…我对分配给SS引脚的SS信号感到困惑。您的最新项目现在使用所有四个/ SS线,具有以下引脚分配: SCB信号SCB引脚(专用于SCB功能)/SS0SCB1.SSEL0/SS1SCB1.SSEL3/SS2SCB1.SSEL2/SS3SCB1.SSL1如果我正确理解,您已经连接了三个信号/ SS0到/SS2的奴隶,这对应于引脚SSEL0、SSEL2和SSEL3。这是正确的吗? 那么,是否有任何波形/SS3(SSEL1)? 如果需要,也许我可以设置一个CY8CKIT-049板,并尝试重现您的问题。 编辑:您当前的项目不是最新的组件版本(例如SCB是3.2,最新的是4)。 当做 以上来自于百度翻译 以下为原文 Hi Dave, okay, now let's check a few other things... I'm confused about the assignment of the /SS signals to the /SS pins. Your latest project now uses all four /SS lines, with the following pin assignment: SCB signalSCB pin (dedicated to SCB function)/SS0SCB1.ssel0/SS1SCB1.ssel3/SS2SCB1.ssel2/SS3SCB1.ssel1If I understand you correctly, you've connected three slaves on signals /SS0 to /SS2, which corresponds to pins ssel0, ssel2 and ssel3. Is this correct? So, is there any waveform on /SS3 (ssel1)? If needed, maybe I can setup a CY8CKIT-049 board and try to reproduce your issue. EDIT: your current project is not on the latest component versions (e.g. SCB is on 3.2, latest is 4.0). Regards |
|
|
|
|
734747535qwe 发表于 2018-11-26 19:47 嗨,拉尔夫, 啊,很抱歉混乱的变化——你是对的。变化的原因:昨晚,作为实验,我启用了SS3,并暂时交换了SS1和SS3之间的引脚,看看我的缺失波形是否存在。我没有看到任何变化,虽然我没有采取额外的步骤把它放在分析仪上。 从下面的表中看,我的变化看起来引起了信号的重新排序? 戴夫 以上来自于百度翻译 以下为原文 Hi Ralph, Ah-- Sorry for the confusing change -- You're correct. The reason for the change: Last night, as an experiment, I enabled SS3 and temporarily swapped the pins between ss1 and ss3 to see if my missing waveform might be there. I didn't see any change, though I didn't take the extra step of putting it on the analyzer. From your table below, it looks like my change caused a new re-ordering of the signals? Dave |
|
|
|
|
只有小组成员才能发言,加入小组>>
788个成员聚集在这个小组
加入小组cyUSB3014一直显示2.1,不能到3.0情况,谁遇到过
7386 浏览 0 评论
2490 浏览 1 评论
2183 浏览 1 评论
4046 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
2093 浏览 6 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
7871浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
6434浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
760浏览 2评论
735浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
8288浏览 2评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-14 18:32 , Processed in 0.647755 second(s), Total 45, Slave 38 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3169