完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我试图与RC522 RFID阅读器芯片建立小终端(来自易趣网的一个小小的模块)和一个OLED显示器(SSD1306同时SPI总线但在udb模式因为没有片选线)当然,强大的PSoC 4 ^。^ 我的问题: 我有一个小小的阿杜伊诺,它的效果和预期一样。RFID读写器连接OLED上钩了,编写的软件和它的作品。 所以我有一个明确的工作阅读器和显示器。 我迷上了显示器的PSoC和开始写的软件来控制它。长篇小说很多失败,但现在终于奏效了。我还得设法用一些显卡的功能界精灵和工作(也是一个小的字体)。 但是读者拒绝工作。我甚至不知道通信工程预期由于在接收缓冲区总是不期望值。主要是0xE0。 有人设法得到这个读者与spi_scb组件的工作吗???? 我试图通过好的静态bitbanging但MHM我不知道发生了什么事。 以上来自于百度翻译 以下为原文 Hello folks, I try to build a little terminal with the rc522 rfid reader chip ( on a tiny module from ebay ) and a OLED Display ( SSD1306 also SPI bus but in UDB mode because no chip select wire ) and of course the MIGHTY PSOC 4 ^.^ My problem: I have a tiny Arduino due which works as expected. RFID reader hooked up OLED hooked up, Software written and it works. So i have a definite working Reader and Display. I hooked up the Display to the PSOC and started to write the Software to control it. Long Story many failures but finaly it works now. Also i got it managed to work with some GFX functions like circles Sprites and and and ( also a little Font ). But the reader refuses to work. I even dont know if the communication works as expected because in the rx buffer are always values which are not expected. 0xE0 mostly. Has anybody managed to get this reader working with a SPI_SCB component ??? I make a try with good old static BitBanging but mhm I dont know what happens. |
|
相关推荐
11个回答
|
|
关于SPI的典型错误:每个写也是一个读,因此它在RX FIFO中产生一个条目。此外,在读取RXFIFO之前,您需要等待SPI传输完成。当SPI时钟速度不够快,你可以不填写发送缓冲区足够快,因此禁用选择信号在传输。
最好是用逻辑分析仪和范围检查信号线。 以上来自于百度翻译 以下为原文 Typical errors regarding SPI: each write is also a read, so it produces an entry in the RX FIFO. Also, you need to wait for the SPI transfer to finish before you read the Rx FIFO. And when the SPI clock is fast enough, you might not fill the TX buffer fast enough so it disabled the SELECT signal inside of a transmission. Best is to check the signal lines with a logic analyzer or a scope. |
|
|
|
好吧,我知道。
我把没有芯片选择的阅读器连接到SCB块。我在代码中控制CS引脚分离。 所以我拉低CS(低电平),然后让TX写等待,直到TX完成,然后我释放CS回到高(CSX写(1)) 他们在阿杜诺的来源也一样。 我发现在一个不同的帖子中,在发送的同时直接读取值,但这也不像预期的那样工作。 明天我会走到埃兹(大学),在实验室里找一个逻辑分析器的提示。 我想我会自己造一个小的来检查它。我得到了一个PSOC5变体的好源代码,包含了来自Halka的人的范围,也许我只得到逻辑分析器的工作。使用SSD1306将是令人敬畏的。小规模但令人敬畏。啊,代码可读性很强。 如果我有进一步的消息,我会发帖的。 以上来自于百度翻译 以下为原文 Okay about that im aware. I connected the reader without the chip select to the SCB Block. I control the CS pin seperate in code. So i pull the CS low ( Active LOW ) then i make the TX WRITE wait until TX finished and then i Release CS back to HIGH ( CS_Write(1)) They do it the same in the Arduino Source. I found also in a different post a Sniped for Readback the Value directly while sending but this also dont work as expected. Tomorrow Ill walk over to the ETHZ ( University here ) and ask in the Laboratory for a hint with the Logic Analyser. I think ill build myself a tiny one to check it. I got a nice Sourcecode for a PSOC5 Variant with included Scope from Someone AKA hlipka Maybe i get it only as LOGIC ANALYSER working. with the SSD1306 it would be awesome. little scale but AWESOME. Ah and the code is well readable. Ill post it if i have further news. |
|
|
|
我想我真的需要把这个项目移交给PSoC5LP并确保它在那里运行。使显示代码容易改变也可能有帮助…一个注意事项:由于它的样本最多为500千赫,所以将项目中的SPI时钟减少到大约100KHz,以便能够使用它。
以上来自于百度翻译 以下为原文 I think I really need to port that project over to the PSoC5LP and make sure it runs there. Making the display code easily to change might also be helpful... One note: since it samples with at most 500kHz, reduce the SPI clock in your project to about 100kHz to be able to use it. |
|
|
|
作为一个便宜但非常好的逻辑分析仪,我有2个,
他们工作很好。 www. EBay.COM/ITM/NeX-USB逻辑分析仪-SET-UB-CABEL-24MHZ-8CH-24MHZ-FAR-FPGA-/11154069944 www. Salea.com/下载 问候,Dana。 以上来自于百度翻译 以下为原文 As an aside a cheap but very good logic analyzer, I have 2 of them, they work great. www.ebay.com/itm/New-USB-Logic-Analyzer-Device-Set-USB-Cable-24MHz-8CH-24MHz-for-ARM-FPGA-/111540669744 www.saleae.com/downloads Regards, Dana. |
|
|
|
在逻辑分析仪是否有软件或你需要下载一个程序从Web发布的对线下的网站吗?
以上来自于百度翻译 以下为原文 On the logic analyzer does it have software or do you need to download one of the programs from the site on the next line from the web posting? |
|
|
|
是的,你必须从第二个链接下载软件。
问候,Dana。 以上来自于百度翻译 以下为原文 Yes, you have to download the software from the second link. Regards, Dana. |
|
|
|
降低速度就行了。我看到的范围也在MOSI线^弱连接。^可能发生。甚至它在仪表上读了0欧姆??好的,现在我从RC522获得状态消息。当我把所有图书馆的PSoC生病后回来这里或者我的页面和链接在这里。我可以告诉你。这真是太棒了。^ ^
啊,你是HLLKA吗?? 以上来自于百度翻译 以下为原文 reducing the speed did the trick. i saw on the scope also a weak connection on the MOSI wire ^.^ could happen. even it alwas read 0 ohms on the meter ?.? okay now i get the status messages from the rc522. When i transfered all the Libraries to the PSOC Ill post it back here or on my page and a Link here. I can tell You. THIS IS FREAKIN AWESOME. ^.^ Ah @hli are You hlipka ?? |
|
|
|
@莱克森:是的,我们是同一个人。
很高兴你得到它的工作(尽管我的减速顶的目的是用我的逻辑分析仪项目,不是你的问题…) 以上来自于百度翻译 以下为原文 @lexarion: Yes, we are the same person Glad you got it working (even though my speed reduction tip was aimed at using my Logic Analyzer project, not at your problem ...) |
|
|
|
很好。我想看看最大速度是由RC522支持,但我很高兴这是工作。
一个问题。我只需要你的固件的逻辑分析仪的一部分是什么?或者我应该往哪里看?因为所有的东西都被分成了分开的部分,所以有很多不同的文件。 以上来自于百度翻译 以下为原文 Nice. Ill have a look what the max speed is which is supported by the rc522 but im glad that this is working. One question. I only need the logic analyser part of your firmware which parts are they ?? Or where should i look in ? Because all is wonderfull divided into seperate parts and so there are many different files. |
|
|
|
我会把模拟东西放进去,不会伤害的。也许它不是很明显,但是你可以用它和一个客户端一起使用OpenLogic嗅探器(JaviOLS是目前最好的),而不是GLCD。
如果你真的想从中创建一个LA:从SAR ADC,他们的大坝和他们的输入处理(PGA)开始。然后看看触发器。从那里你需要清理源代码从所有未引用的东西(大部分应该在范围。C/H)。接下来是DMA.C,从那里你会看到主C中的显示代码需要被触摸。此外,请看HANDLARY.Loop.C中的菜单代码,以移除所有模拟设置的东西。当您这样做时,您可能会增加频率选项,因为端口可以比ADC运行得更快。 正如我所说,更容易把它放在那里: 以上来自于百度翻译 以下为原文 I would just keep the analog stuff in there, it doesn't hurt. Maybe its not obvious, but you can use it with a client for the openlogic sniffer (Jawi OLS is the best one available right now) too, instead of the GLCD. If you really want to create a LA out of it: start with ripping out the SAR ADCs, their DAM and their input handling (the PGAs). Then look at the triggers. From there you need to clean the source code from all unreferenced stuff (most of it should be in scope.c/.h). Next would be DMA.c, and from there you will see that the display code in main.c needs to be touched. Also look at the menu code in handler_local.c to remove all the analog setup stuff. When you do that, you can probably increase the frequency options since the ports can run faster than the ADCs. As I said, its easier to keep it in there :) |
|
|
|
@ LexARION -你曾经为MFRC522构建PSoC库吗?我是一个新手,在PSoC端口在somemfrc522code柏树员。或者如果你有读者工作我会爱你的代码先生看看:)
以上来自于百度翻译 以下为原文 @lexarion - did you ever build a Psoc lib for the MFRC522? I'm a psoc newbie and trying to port over some MFRC522 code to Cypress devkit. Or if you got the reader working I would love to take a peek at your code kind sir :) |
|
|
|
只有小组成员才能发言,加入小组>>
750个成员聚集在这个小组
加入小组2060 浏览 1 评论
1817 浏览 1 评论
3627 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1756 浏览 6 评论
1503 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
490浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
346浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
406浏览 2评论
351浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
842浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-13 11:50 , Processed in 1.352466 second(s), Total 98, Slave 82 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号