- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear All,
In the test process, there is a certain probability of the following errors: when the host sends a read command to P4, SDA is pulled down, ezi2c replies to Nck, and the data read by subsequent hosts are all wrong.
Best Regards,
Ferris
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
从你们提供的波形看,这个IIC Master 产生的 CLK/SDA 波形应该是一个软件模拟的,不像是纯硬件的。我的建议是你们最好找到可以容易问题的方法,然后使用好一些的逻辑分析仪(可以同时抓模拟通道)来解析一下问题出现时 SCL 上是否出现了窄脉冲 glitch, 从而导致 clock 错位。这种 glitch 比较窄的话,使用示波器和逻辑分析仪数字通道是很难抓取到的,但是逻辑分析仪的模拟通道一般都可以抓取到。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Replace the I2C Master with BCP+Miniprog3/Miniprog4/KitProgx, see if this issue is reproducible or not.
2. Let's assume there has a glitch pulse during I2C Master send slave address out and this glitch is treated as a normal clock pulse by I2C slave, then is the data read out from i2c slave correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vison,
谢谢。现在可以确认的是,用BCP+miniprog3复现不出来。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
从你们提供的波形看,这个IIC Master 产生的 CLK/SDA 波形应该是一个软件模拟的,不像是纯硬件的。我的建议是你们最好找到可以容易问题的方法,然后使用好一些的逻辑分析仪(可以同时抓模拟通道)来解析一下问题出现时 SCL 上是否出现了窄脉冲 glitch, 从而导致 clock 错位。这种 glitch 比较窄的话,使用示波器和逻辑分析仪数字通道是很难抓取到的,但是逻辑分析仪的模拟通道一般都可以抓取到。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Vison,
谢谢。
客户定义的buffer是12bytes, 如果在您划出的地方多出一个波形,那客户读寄存器的位置就从00变成了80。
Scb datasheet上似乎说I2C Master不能读到定义buffer以外位置的数据。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
我只是举个例子,如果读到的异常数据和正常数据之间存在明显的相关性(比如移位,ACK/NACK 位被识别成数据位等),那么就可以反过来验证我们的推理是正确的。
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
好的,谢谢支持。