当前位置:网站首页>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 .
边栏推荐
- Pytoch learning notes -- seresnet50 construction
- 泰山OFFICE技术讲座:英寸,厘米,磅,派卡,提,行,字行,像素的换算关系
- ML - Speech - traditional speech model
- Storage structure of cross linked list
- Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output
- R语言偏相关性计算(Partial Correlation)、使用ggm包的pcor函数计算偏相关性(Partial Correlations)
- CircleIndicator组件,使指示器风格更加多样化
- Pytoch learning notes -- Summary of common functions of pytoch 1
- The second revolution of reporting tools
- Basic usage of MFC thread afxbeginthread, passing multiple parameters
猜你喜欢
![[server data recovery] data recovery cases of raid information loss caused by unexpected power failure of HP EVA server storage](/img/90/51d86111b918eb60761818110cdec4.jpg)
[server data recovery] data recovery cases of raid information loss caused by unexpected power failure of HP EVA server storage

Window system black window redis error 20creating server TCP listening socket *: 6379: listen: unknown error19-07-28

Leetcode - 359 log rate limiter (Design)

通用测试用例写作规范

【莎士比亚:保持做人的乐趣】

「数字安全」警惕 NFT的七大骗局

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

Storage structure of cross linked list

【服务器数据恢复】HP EVA服务器存储意外断电导致RAID信息丢失的数据恢复案例

ML - Speech - Introduction to speech processing
随机推荐
Equivalent change of resistance circuit (Ⅱ)
报表工具的二次革命
泰山OFFICE技术讲座:英寸,厘米,磅,派卡,提,行,字行,像素的换算关系
Leetcode - 641 design cycle double ended queue (Design)*
记得那两句话
General test case writing specification
Gary marcus: learning a language is more difficult than you think
How matlab produces random complex sequences
CircleIndicator组件,使指示器风格更加多样化
乐观锁悲观锁适用场景
I interviewed 8 companies and got 5 offers in a week. Share my experience
2022-07-25日报:微软提出CodeT:代码生成新SOTA,20个点的性能提升
BSC智能链合约模式系统开发详情
The second revolution of reporting tools
推荐收藏,这或许是最全的类别型特征的编码方法总结
Typescript learning 2 - Interface
推荐系统-协同过滤在Spark中的实现
基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
CVPR 2022 | in depth study of batch normalized estimation offset in network
Baseband simulation system experiment of 4pam in Gaussian channel and Rayleigh channel