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.

TMS570使用标准spi通信时,CS无法下拉

Other Parts Discussed in Thread: HALCOGEN

SPI1的clk, cs[0], SIMO[0], SOMI[0]用于和外设通信。在HALCOGEN中使能SPI1,端口映射只保留用到的4个端口,其他全部取消

SPI1修改port,只保留用到的4个端口,其他设置为GIO模式

main函数中选中cs[0],发送数据CLK与SIMO端口有波形,CS端口一直为高电平,导致SOMI端口没有数据。根据寄存器TxDAT1可知,片选选择的是cs[0],但发送期间cs[0]端口一直为高电平。在发送数据期间,cs应该保持低电平才对,是哪里设置的有问题吗?