当前位置:网站首页>Analysis and solution of data and clock mismatch delay in SPI transmission
Analysis and solution of data and clock mismatch delay in SPI transmission
2022-07-25 16:01:00 【Wang erche】
Hardware environment
4G modular :FIBOCOM_AL940, be based on MDM9628 CordX-A7 1.3 GHz Single core ,RAM 70M ROM 150M, Contains two groups spi Interface , Only the main equipment , The biggest support 50M Clock speed ;
MCU Single chip microcomputer :RH850/F1K, Contains two groups spi Interface , Support master-slave mode ; Maximum support from mode 5M Clock speed ;
4G Module power domain 1.8V, Single chip microcomputer 3.3V Power domain , In the middle TXS0104E and TXS0108E Chip conversion level ;
4G Module dominated mode , Single chip microcomputer as slave device , But the single-chip computer sends data to 4G modular ;
Problem description
At the clock rate 2.4 The following data is sent normally :0xaa 0x55

stay 3.2M The second byte data does not match the clock , A clock is shifted backward bit position , the last one bit The high and low bits will not be changed when the clock is idle :


Through direct connection of data line and clock line ,3.5M Normal rate , But a lot of data will be lost , The single chip microcomputer did not send data

The clock is 4.8M when , The clock shifts back one to three random occurrences .
Problem analysis
1、 It is suspected that the mode set by the level conversion chip is incorrect, resulting in the problem of maximum data rate , modify spi Of 4 There is no improvement in these modes ;

2、 Suspect the up and down resistance of the clock and data line , No improvement after modification attempt ;
3、 The suspicion is 4G Problems caused by module data sampling , Disconnect the data line and measure the data pin at the MCU end , No improvement ;
4、 doubt 4G Module clock chip is not standard, resulting in , And IMX8 Compare the clock of , There are subtle differences , But the waveform meets the requirements of the manual ;




5、 SCM and IMX8 The connection is normal , All are 3.3V There is no level conversion , The communication procedure is 4G Module communication is abnormal , The MCU development engineer said that the program had not been changed , So it's not a software problem , The results are only compared spi Code , When comparing the clock code of single chip microcomputer, we found an exception , There are differences in frequency doubling settings ,4G The module defaults to EMCLK,IMX8 Use PPLLOUT, This leads to the difference of frequency doubling :

Problem solving
The single chip microcomputer selects the clock source as PPLLOUT after , Data transmission is normal ,5M The speed is also normal , However, the following tests still have different degrees of packet loss probability .
The problem summary
Involving hardware engineers ,BSP The engineer , MCU Engineer ,4G modular spi Drive development engineer , SCM technical support , Finally, it was found that it was a problem of setting , It took weeks to put this simple spi Problem solving , It's really shameful .
边栏推荐
- mysql 表读锁
- R语言使用gt包和gtExtras包漂亮地显示表格数据:gt_bar_plot函数和gt_plt_bar_pct函数可视化百分比条形图、原始数据的百分比条形、缩放后的数据的百分比条形、指定数据对齐宽度
- 产品动态丨Android 13 高效适配全新升级
- How matlab produces random complex sequences
- BSC smart chain contract mode system development details
- Okaleido上线聚变Mining模式,OKA通证当下产出的唯一方式
- 报表工具的二次革命
- Alibaba's internal "100 billion level concurrent system architecture design notes" are all inclusive, too comprehensive
- 兆骑科创海内外高层次创新创业人才服务平台,双创成果转化平台
- Product dynamics - Android 13 high-efficiency adaptation new upgrade
猜你喜欢

MATLAB optimization tool manopt installation

十字链表的存储结构

CVPR 2022 | 网络中批处理归一化估计偏移的深入研究

Beyond Compare 4 实现class文件对比【最新】

通用测试用例写作规范

Equivalent change of resistance circuit (Ⅱ)

Matlab simulation of BPSK modulation system (1)

Pytoch learning notes -- seresnet50 construction

Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network

Why is preparestatement better and safer?
随机推荐
Matlab -- CVX optimization kit installation
没错,请求DNS服务器还可以使用UDP协议
「数字安全」警惕 NFT的七大骗局
MySQL全局锁
mysql 隔离级别事务
Leetcode - 622 design cycle queue (Design)
Dpdk packet receiving and sending problem case: non packet receiving problem location triggered by mismatched packet sending and receiving function
LeetCode - 232 用栈实现队列 (设计 双栈实现队列)
基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
推荐收藏,这或许是最全的类别型特征的编码方法总结
How to solve cross domain problems
Endnote cannot edit range resolution
I want to ask whether the variable configuration function can only be used in SQL mode
MySQL教程67-使用DISTINCT过滤重复数据
ServletConfig 类和ServletContext 类
开发者如何为React Native选择合适的数据库
I interviewed 8 companies and got 5 offers in a week. Share my experience
Leetcode - 225 implements stack with queue
CVPR 2022 | 网络中批处理归一化估计偏移的深入研究
MySQL 元数据锁(MDL)