ST意法半导体
直播中

陈桂英

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

ST25RU3993读取寄存器遇到了问题

嗨,

我正在使用ST25RU3993构建UHF RFID阅读器,我在读取寄存器时遇到了问题。我们的想法是将IC连接到NodeMCU或Arduino(在这个阶段都使用Arduino IDE进行编程)。
我将MISO连接到MISO,将MOSI连接到MOSI(我假设数据表中有错误,如图3所示)
启用IC(EN = 1)并等待1秒后,我尝试读取寄存器,但IC不响应我的SPI消息。我可以在示波器上看到NCS,CLK和MOSI信号,但MISO始终为低电平。我的代码读取寄存器0x00到0x24。 SPI设置为MODE1(NodeMCU在上升沿输出数据,并按照数据表第15页的指示在下降沿捕获)。
我尝试了不同的频率:1kbps,100kbps,1Mbps,2Mbps和5Mbps。
根据数据表,IC应处于NORMAL模式,因此在启用器件后应能进行SPI通信
我还看到某些引脚(稳压器)的电压,因此设备已上电并正在工作。至少它的一些部分。我一直在家里组装电路板,所以我有可能把它炸好。在我确定这个芯片损坏之前,我不想买一块新芯片。
有什么我做错了吗?我忘记了一些程序吗?
请帮忙!

#uhf-rfid-reader-st25ru3993 #registers

以上来自于谷歌翻译


以下为原文




Hi,

I'm building an UHF RFID reader using ST25RU3993 and I have a problem reading the registers. The idea is to connect the IC to NodeMCU or Arduino (both are programmed using Arduino IDE at this stage).
I connected MISO to MISO and MOSI to MOSI (I�m assuming there is an error in the datasheet Figure 3 p.15)
After enabling the IC (EN = 1) and waiting 1 second I try to read registers, but the IC does not respond to my SPI messages. I can see NCS, CLK and MOSI signals on the oscilloscope, but the MISO is always LOW. My code reads registers 0x00 to 0x24. The SPI was set to MODE1 (NodeMCU outputs data on rising edge and captures it on Falling edge as instructed in the datasheet p.15).
I tried different frequencies: 1kbps, 100kbps, 1Mbps, 2Mbps and 5Mbps.
According to the datasheet the IC should be in NORMAL mode and therefore the SPI communication should be possible after enabling the device.
I also see voltages at some of the pins (voltage regulators) so the device is powered up and is working. At least some parts of it. I have been assembling the board at home so there is a possibility that I fried it. I don�t want to buy a new chip before I�m sure this one is damaged.
Is there anything that I�m doing wrong? Did I forget about some procedure?
Please help!

#uhf-rfid-reader-st25ru3993 #registers

回帖(3)

陈桂英

2019-7-8 09:09:06
我忘了提到我先发送MSB。

以上来自于谷歌翻译


以下为原文




I forgot to mention that I send MSB first.
举报

陈桂英

2019-7-8 09:18:14
问题解决了。这是一个愚蠢的硬件错误。
Arduino ProMini 3V读取寄存器。

以上来自于谷歌翻译


以下为原文




Problem solved. It was a silly hardware error.
Arduino ProMini 3V reads the registers.
举报

李晨灵

2019-7-8 09:25:36
嗨,
我在这里做同样的事情。我在开始时遇到了几个问题,我不得不移植代码的几个部分,但现在我能够在ArduinoIDE上使用NodeMCU初始化ST25RU3993。
我希望很快就能完成清点工作。

以上来自于谷歌翻译


以下为原文




Hi,
I'm doing the same over here. I had faced several problems in the beginning, I had to port several parts of the code, but now I'm able to initialize the ST25RU3993 using NodeMCU at ArduinoIDE.
I hope to get the inventory round working soon.
举报

更多回帖

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