我使用SPC5604B54L5 DSPI模块,LTC6804(电池电压采集芯片)和微控制器通过SPI
通信,模式为CPOL = 1,CPHA = 1,但通信错误。
在我使用
STM32和LTC6804进行通信之前,它是成功的。
所以我连接了一个逻辑分析仪:我发现每次SPC5604发送一个字节时,MOSI都会拉高。换句话说,当SPI处于空闲状态时,MOSI默认为高电平。如何使MOSI处于默认状态是低电平?
我很困惑为什么逻辑分析仪可以分析SPC5604发送的数据,但LTC6804没有任何数据要返回。这表明SPC5604发送数据的规则符合SPI规则。请注意,STM32和6804可以正常通信
我正在使用SPI0
PA13 ------- MOSI
PA15 ------- CS(软件控制)
PA12 ------- MISO
PA14 ------- SCK
我收到的所有数据都是0
以上来自于谷歌翻译
以下为原文
I use SPC5604B54L5 DSPI module, LTC6804 (Battery voltage acquisi
tion chip) and the microcontroller through the SPI communication, the mode is CPOL = 1, CPHA = 1, but the communication is error.
Before I used STM32 and LTC6804 to communicate, it was successful.
So I connected a logic analyzer: I found that each time the SPC5604 sends a byte, MOSI will pull high . in other words, when the SPI is in the idle state, MOSI is high by default.What can I do to make MOSI in the default state is low?
I am very very puzzled why the logic analyzer can analyze the data sent by the SPC5604, but the LTC6804 does not have any data to return. This indicates that the SPC5604 rules for sending data are compliant with the SPI rules. Please note that STM32 and 6804 can communicate normally
i am using SPI0
PA13-------MOSI
PA15-------CS(soft ware control)
PA12-------MISO
PA14-------SCK
I received all the data are 0