完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我使用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 acquisition 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 |
|
相关推荐
1个回答
|
|
|
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2979 浏览 1 评论
3304 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1889 浏览 1 评论
3742 浏览 6 评论
6154 浏览 21 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
49浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
51浏览 5评论
85浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
48浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
50浏览 5评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-3-31 06:01 , Processed in 0.739911 second(s), Total 72, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191