Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复IIC从机发送数据失败问题。 #4

Closed
wants to merge 1 commit into from

Conversation

wx85105157
Copy link

iic从机stop检测在主机最后一字节数据nack的时候不会置位,只会触发nack错误中断。

在NACK错误检测中进行IIC从机的STOP释放,即可修复作为从机发送数据只能发送一次的问题。

使用UNO作为主机,ARI001作为从机进行测试。
image

iic从机stop检测在主机最后一字节数据nack的时候不会置位,只会触发nack错误中断。
@wx85105157
Copy link
Author

此修复可关闭以下问题:

Air-duino/Arduino-AirMCU#67
Air-duino/Arduino-AirMCU#62

@wx85105157
Copy link
Author

在主机请求数据最后一个字节的时候,主机是发送nack应答后发送stop。
4e7194145740b67d36e50c6b07c4afc

793d3fc1af14897a9109b01a4440a5e

按照手册资料,这个时候从机是检测不到随后的stop的。导致随后的通信出现异常。
image

修正后主机连续请求从机数据正常了。
823bd6a94317be0512c3afceb7b292b

@wx85105157
Copy link
Author

该方法经过长时间(2D)测试,发现IIC从机通信还是会出错。

@wx85105157 wx85105157 closed this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant