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.

msp430F5438A SPI 波特率的设置?

Other Parts Discussed in Thread: MSP430F5529

P3SEL |= 0x31; // P3.5,4,0 option select

UCA0CTL1 |= UCSWRST; // USCI 逻辑处于复位状态。

UCA0CTL0=UCCKPL+UCMSB+UCMST+UCSYNC+UCMODE_1; //数据变化在UCLK和捕获在后面的边沿 无活动时钟为高电平
//MSB先发, 8为数据模式 主机模式 3线模式 同步模式
UCA0CTL1=UCSSEL_3; //SMCLK

UCA0BR0 = 1; // /1
UCA0BR1 = 0;
// UCA0MCTL = 0x11; //调整寄存器=ff;波特率位20M
UCA0CTL1 &= ~UCSWRST; //取消复位


其中SMCLK=25M,波特率的设置公式为:

Baudrate=SMCLK/( (1+1+1+2+1+1+1+2)/8 )  ,按照这个公式设置出的波特率应该为:25M/1.25=20M,但是示波器显示只有1.563M. 是不是这个公式有问题,还是我寄存器设置有问题,或者其他问题?

希望TI工程师帮忙解答哈!谢谢了