当前位置:网站首页>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 .
边栏推荐
- Data system partition design - partition rebalancing
- Window system black window redis error 20creating server TCP listening socket *: 6379: listen: unknown error19-07-28
- Beyond Compare 4 实现class文件对比【最新】
- July 25th, 2022 Daily: Microsoft proposed CodeT: a new SOTA for code generation, with 20 points of performance improvement
- Beyond compare 4 realizes class file comparison [latest]
- MySQL教程68-AS 设置别名
- 乐观锁悲观锁适用场景
- [Shakespeare: keep the fun of being a man]
- Copy a word style template to another document
- LeetCode - 359 日志速率限制器 (设计)
猜你喜欢

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

哪个led显示屏厂家更好

Geogle colab notes 1-- run the.Py file on the cloud hard disk of Geogle

ML - Speech - Introduction to speech processing

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

推荐系统-协同过滤在Spark中的实现

leetcode:154. 寻找旋转排序数组中的最小值 II【关于旋转排序数组的中后定位二分法】

LeetCode - 359 日志速率限制器 (设计)

一文入门Redis

Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
随机推荐
记得那两句话
MySQL tutorial 67- filter duplicate data using distinct
LeetCode - 359 日志速率限制器 (设计)
Implementation of recommendation system collaborative filtering in spark
Pytoch learning notes -- Summary of common functions 3
Data system partition design - Request Routing
LeetCode - 232 用栈实现队列 (设计 双栈实现队列)
Record Locks(记录锁)
BSC智能链合约模式系统开发详情
Leetcode - 303 area and retrieval - array immutable (design prefix and array)
Typescript learning 2 - Interface
递归菜单查询(递归:自己查自己)
Activity review | July 6 Anyuan AI X machine heart series lecture No. 2 | MIT professor Max tegmark shares "symbiotic evolution of human and AI"
没错,请求DNS服务器还可以使用UDP协议
Understanding of this object
General test case writing specification
LeetCode - 362 敲击计数器(设计)
BSC smart chain contract mode system development details
【服务器数据恢复】HP EVA服务器存储意外断电导致RAID信息丢失的数据恢复案例
Dpdk packet receiving and sending problem case: non packet receiving problem location triggered by mismatched packet sending and receiving function