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.

TMS320F28335: 大佬们,我想问一下,我的这个SPI配置有问题吗?理论上应该是发送和接收是一样的数据呀

Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE

为啥我这Rxbuf的数据始终比上一个数据大255?理论上Tx的数据应该跟Rx是一样的。

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#########
void main()
{
int i=0;
// Uint16 senddata=0;
// Uint16 recdata=0;
char str[40];
InitSysCtrl();
InitPieCtrl();
IER = 0x0000;
IFR = 0x0000;
InitPieVectTable();
// LED_Init();
// TIM0_Init(150,200000);//200ms
UARTa_Init(4800);
SPIA_Init();
while(1)
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX