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.

[参考译文] TRF7970A:读取使用 SPI 协议且具有 MSP430F5529的 TRF7970A

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

https://e2e.ti.com/support/wireless-connectivity/other-wireless-group/other-wireless/f/other-wireless-technologies-forum/1339501/trf7970a-to-read-trf7970a-with-msp430f5529-using-spi-protocol

器件型号:TRF7970A
主题中讨论的其他器件: MSP430F5529

大家好!
我正在尝试使用 RFID 读取 NFC 标签-带 MSP430F5529LP 的 TRF7970A。

我为 SPI 编写了代码,但我没有得到输出,我是新的嵌入式,你能帮助解决这个问题.  

//=================================== 用于 MSP430F5529的 SPI 协议,带 TRF7970A===========
void SPI_usciSet (void) //使用 USCI_B0
{
UCB0CTLW0 |= UCSWRST;         //启用软件复位
UCB0CTLW0 |= UCMSB + UCMST + UCSYNC;// 3引脚8位 SPI 主器件

UCB0CTLW0 &=~μ m UCCKPH;
UCB0CTLW0 |= UCSSEL__SMCLK;       // SMCLK

UCB0BR0 = 0x04;
UCB0BR1 = 0;

P3SEL |=(BIT1 | BIT2 | BIT3);         //选择 P3.1、3.2、3.3 UCBOCLK、UCB0SIMO、UCB0SOMI

SLAVE_SELECT_PORT_SET;          // P8.2 -从器件选择
SLAVE_SELECT_HIGH;              //从选择-无效(高)

UCB0CTLW0 &&~UCSWRST;   //**初始化 USCI 状态机**


PM5CTL0 &=~μ A LOCKLPM5;

//================================