ST意法半导体
直播中

李泽睿

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

请问有没有示例代码能将ST25R3911B置于透明模式?

是否有任何示例代码将ST25R3911B置于透明模式?我一直无法做到
ST25R3911B在透明模式下输出OOK。
我需要这个功能,因为我正在实现一个专有协议。
我的配置/使用模型:
我的电路根据时序要求使用MCU_CLK
我配置ST25R3911_REG_OP_CONTROL寄存器以使能TX并禁用RX
我清零ST25R3911_REG_AUX_tr_am并在ST25R3911_REG_AUX寄存器中设置ST25R3911_REG_AUX_ook_hr以启用OOK.I执行0xDC命令(ST25R3911_CMD_TRANSPARENT_MODE)以启用透明模式。我将MOSI引脚配置为推挽输出我期望从RFO1测量时反映MOSI的变化RFO2,振荡信号(MOSI高)或无(MOSI低)。但不幸的是,我没有得到RFO1 / RFO2的任何信号。
任何帮助将不胜感激。

以上来自于谷歌翻译


以下为原文




Is there any sample code to put the ST25R3911B into transparent mode?  I have been unable to make the
ST25R3911B output OOK in transparent mode.

I need this functionality because I'm implementing a proprietary protocol.

My configuration/use model:

  • My circuit uses MCU_CLK as required for timing
  • I configure the ST25R3911_REG_OP_CONTROL register to enable TX and disable RX
  • I clear ST25R3911_REG_AUX_tr_am and set ST25R3911_REG_AUX_ook_hr in the ST25R3911_REG_AUX register to enable OOK.
  • I execute the 0xDC command (ST25R3911_CMD_TRANSPARENT_MODE) to enable transparent mode.
  • I configure the MOSI pin to push-pull output
  • I expect changes to MOSI to be reflected when I measure from RFO1 to RFO2, with an oscillating signal (MOSI high), or nothing (MOSI low).
But, unfortunately, I don't get any signal on RFO1/RFO2.

Any assistance would be greatly appreciated.

回帖(2)

周志光

2019-7-25 09:41:01
你好,
不幸的是,ST没有支持代码显示ST25R3911B上透明模式的使用情况。
查看您的程序看起来很合理。一些要研究的路径:
 
你没有提到振荡器使能'en'位:我假设你做到了。没有得到任何信号可能听起来像this.ook_hr不应该需要,我不完全清楚如果== 1请注意/输入Tansparent模式命令后/ SS线没有再次降低会发生什么.Regards,Ulysses

以上来自于谷歌翻译


以下为原文




Hello,
unfortunately ST does not have support code showing usage of transparent mode on ST25R3911B.
Looking through your procedure looks reasonable. Some paths to look into:


  • You don't mention oscillator enabling 'en' bit: I assume you did that. Not getting any signal might sound like this.
  • ook_hr should not be needed, I am not exactly aware what happens if ==1
  • Please observe that /SS line is not going low again after the Enter Tansparent Mode command.
Regards, Ulysses
举报

李泽睿

2019-7-25 09:47:09
很遗憾听到ST对透明模式没有任何支持。但是,我已经能够对代码进行一些更改,以使传输和接收都以透明模式工作。
谢谢你的帮助。

以上来自于谷歌翻译


以下为原文




I'm sorry to hear that ST does not have any support for transparent mode.  I have been, however, able to make some changes to the code to make both transmit and receive work in transparent mode.
Thanks for your help.
举报

更多回帖

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