嗨,
我正在使用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 wai
ting 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