当前位置:网站首页>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 .
边栏推荐
- Circulaindicator component, which makes the indicator style more diversified
- 「数字安全」警惕 NFT的七大骗局
- Zhaoqi Kechuang high-quality overseas returnee talent entrepreneurship and innovation service platform, online live broadcast Roadshow
- Window system black window redis error 20creating server TCP listening socket *: 6379: listen: unknown error19-07-28
- 华为2023届提前批预热开始!左 神的程序代码面试指南终派上用场
- 物理防火墙是什么?有什么作用?
- 不愧是阿里内部“千亿级并发系统架构设计笔记”面面俱到,太全了
- What is a physical firewall? What's the effect?
- 开发者如何为React Native选择合适的数据库
- JWT diagram
猜你喜欢

Ml image depth learning and convolution neural network

活动回顾|7月6日安远AI x 机器之心系列讲座第2期|麻省理工教授Max Tegmark分享「人类与AI的共生演化 」

通用测试用例写作规范

Leetcode - 641 design cycle double ended queue (Design)*

Huawei 2023 starts to warm up in advance! Zuo Shen's program code interview guide comes in handy

Activity review | July 6 Anyuan AI X machine heart series lecture No. 2 | MIT professor Max tegmark shares "symbiotic evolution of human and AI"

基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现

推荐收藏,这或许是最全的类别型特征的编码方法总结

Okaleido launched the fusion mining mode, which is the only way for Oka to verify the current output

Ice 100g network card fragment message hash problem
随机推荐
BSC smart chain contract mode system development details
MySQL-自增锁
Leetcode - 232 realize queue with stack (design double stack to realize queue)
leetcode:154. 寻找旋转排序数组中的最小值 II【关于旋转排序数组的中后定位二分法】
I interviewed 8 companies and got 5 offers in a week. Share my experience
CircleIndicator组件,使指示器风格更加多样化
Ml image depth learning and convolution neural network
Geogle colab notes 1-- run the.Py file on the cloud hard disk of Geogle
Where is there a demo to set up the flex CDC to draw the number of MySQL?
mysql 表写锁
MySQL tutorial 67- filter duplicate data using distinct
意向锁(Intention Lock)
HDD杭州站·HarmonyOS技术专家分享HUAWEI DevEco Studio特色功能
用GaussDB(for Redis)存画像,推荐业务轻松降本60%
Redis分布式锁,没它真不行
Wechat applet
墨天轮高分技术文档分享——数据库安全篇(共48个)
Pytoch learning notes -- Summary of common functions of pytoch 1
[IJCAI 2022] parameter efficient large model sparse training method, which greatly reduces the resources required for sparse training
I want to ask whether the variable configuration function can only be used in SQL mode