请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CC1201 主题中讨论的其他器件: CC1120、 CC1200
我正在尝试使用 CC1201中的随机发生器、并始终得到0。
在芯片的初始配置中、我向 RNDGEN 寄存器写入0x80。 当我读回寄存器时、我期望获得随机数。
我是否需要启用任何其他配置才能打开随机发生器?
谢谢
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我使用 CC1200进行了测试、您唯一需要做的就是在读取 hte RNDGEN_VALUE 之前设置 RNDGEN_EN = 1:
writeByte = 0x80;
cc120xSpiWriteReg (CC120X_RNDGEN、writeByte、1);
while (1)
cc120xSpiReadReg (CC120X_RNDGEN、writeByte、1);
BR
Siri