当前位置:网站首页>STM32 SPI reading data is inaccurate, only the first time is correct, and the latter is not correct
STM32 SPI reading data is inaccurate, only the first time is correct, and the latter is not correct
2022-07-22 08:26:00 【Crazy Alex】
As the title :SPI The read data is inaccurate , Only for the first time , Neither side is right behind
Later it was found that STM32 CubeMX I'm in trouble ,
I chose SPI1 NSS function , You can't choose this in the future , Put... Directly NSS The pin is set to push-pull output , In this way, the program is easy to control .
Because I'm here CubeMX Initialize the chip selection pin to SPI_NSS It's in , Later, when I read and write in the code, raising and lowering it will not work , therefore SPI Only valid when reading data for the first time , Other times are invalid
Keep in mind ,SPI Never choose CubeMX The middle one SPI_NSS 了
边栏推荐
- MySql中on与where的区别个人总结——分清楚条件应该写在哪里
- p[0]作为for循环的判断条件
- Unified payment callback interface of Alipay (applicable to H5, PC and APP)
- Percona xtradb cluster installation
- 如何在浏览器中使用 Blob 对象进行缓存
- SSM项目完整源码[通俗易懂]
- Partage des données | données du module Bluetooth HC - 05
- Anaconda installs jupyter lab + jupyterlsp (code prompt, code error correction) detailed construction process
- Integrate efk with odoo to realize log visualization
- UNet详解(附图文和代码实现)
猜你喜欢
Linux(Centos)安装Mysql
STM32 HAL库 SPI总是读出FF的问题解决!
Next. JS and Remix
FFT快速傅里叶变换在字符串匹配中的应用详解【附模板,例题】五千字详解
Percona XtraDB Cluster安装
Write the first myshell program (computer experiment report II)
FFmpeg 音频解码(秒懂)
CDH 6.1 environment construction graphic tutorial
Why do you always say that you should prepare for the first construction after the second construction examination? You must not know these points!
用odoo集成EFK,實現日志可視化
随机推荐
R language tests the significance of correlation coefficient: use cor.test function to calculate the value and confidence interval of correlation coefficient and its statistical significance (if the v
NotePad++中如何把横向闪烁光标( _ )修改成竖向闪烁光标样式( | )?
C中如何打开stdio.h ? 如何找到printf的定义?
R language uses the ggarrange function of ggpubr package to combine multiple images, and uses the ggexport function to save the visual images in PNG format (width parameter specifies width, height par
pytorch如何将Variable或Tensor转换为numpy?
华泰证券账户开户安全吗,手机上就可以办理的吗?
用odoo集成EFK,实现日志可视化
R语言ggplot2可视化:可视化散点图并为散点图中的数据点添加公式标签、使用ggrepel包的geom_text_repel函数避免数据点公式标签互相重叠(添加公式标签)
R language uses the ggarrange function of ggpubr package to combine multiple images, and uses the ggexport function to save the visual image in TIFF format (width parameter specifies width, height par
西门子博图安装期间反复重启的问题处理
状态管理之 Zustand
Map与List的遍历速度比较
数据分析与挖掘2
How excel automatically matches gender code according to ID number
R language test sample proportion: use prop The test function performs a single sample proportion test (whether the proportion of successful samples is greater than the specified proportion value p)
WebSockets 和 Server-Sent Events
activiti默认模型ER图
SSM项目完整源码[通俗易懂]
Verilog应用——24秒篮球计数器
char short int等类型变量在内存中占用字节数