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.

[参考译文] LAUNCHXL-CC1310:CC1310

Guru**** 1135610 points
Other Parts Discussed in Thread: CC1310
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/interface-group/interface/f/interface-forum/1313753/launchxl-cc1310-cc1310

器件型号:LAUNCHXL-CC1310
主题中讨论的其他器件:CC1310

大家好!
我正在研究通过四线 SPI 接口(CLK、MOSI、MISO、SS)实现 RFID 模块的互连。 将 CC1310用作主设备。
我的从器件的数据表指定每个数据字节的位顺序是以 LSB 优先的方式进行写入。
我已查看 cc1310数据表、其中提到 SPI 写入以 MSB 优先、有人可以指导我如何根据从器件规格进行更改吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    这是 SPI 外设本身的规格、因此 MSB 优先/LSB 第一个数据帧转换不能在驱动程序级别发生。  

    技术参考手册: www.ti.com/.../swcu117i.pdf

    您可以尝试在应用级别实现转换并向 SPI 驱动器提供反相数据。  

    此致、
    SID  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    unsigned char *invertir_8bit_bytes(unsigned char *x)
    {
    	int largoTrama = sizeof(x);
    
    	for(int i =0;i<largoTrama;i++){
        x[i] = ((x[i] & 0x55) << 1) | ((x[i] & 0xAA) >> 1);
        x[i]= ((x[i] & 0x33) << 2) | ((x[i] & 0xCC) >> 2);
    	}
    
        return x;
    
    }

    你好、我是 id。

    非常感谢您的帮助、我将从应用中实现位反转。

    附加了字节字符串的位反转函数。

    此致。