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

SCL remains low after NACK #25

Open
oomek opened this issue Apr 24, 2020 · 1 comment
Open

SCL remains low after NACK #25

oomek opened this issue Apr 24, 2020 · 1 comment

Comments

@oomek
Copy link

oomek commented Apr 24, 2020

I have 2 Attiny85s, one master and one slave, connected one to another. If there is no slave listening, or it hasn't booted yet and I send something from master I receive NACK and the SCL is stuck low from this moment onwards. The Mastes is still senting packets, but SCL is always low inbetwen packets. That prevents slave from receiving any further bytes.

image

image

@oomek oomek changed the title SCL remains low in after NACK SCL remains low after NACK Apr 25, 2020
@oomek
Copy link
Author

oomek commented Apr 25, 2020

I've managed to overcome this by replacing the following line:

else return USI_TWI_Get_State_Info();

wit this:

else {
    USI_TWI_Master_Stop()
    return USI_TWI_Get_State_Info();
}

Unfortunately it didn't not help much with issue: #27

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

No branches or pull requests

1 participant