ATTiny82 I2C slave, based on wire example code, consistently runs then fails #894
mathew314
started this conversation in
Support / Q & A
Replies: 2 comments
-
I have the same issue with a ATTiny85 which runs as a slave. It only responds to exactly 15 requests. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I tried changing the TWI_RX_BUFFER_SIZE and TWI_TX_BUFFER_SIZE from the default of 16 ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm having trouble with an I2C slave on a ATTiny85 using "ATTinyCore" and the "Wire" library that runs for a while then stops. I have a reproducible test that fails, and I can get the same hardware working with a different implementation ("attiny" and "TwoWireS"), so my theory is that it's related to my usage of ATTinyCore + Wire library. Any tips would be appreciated, details follow:
(my ref: attiny85_i2c_attinycore_example.ino)
Setup:
Expected outcome:
Actual outcome:
Variations tried:
Current suspicion: It's correlated to the 4 bit counter USIOIF overflow. This goes high at the failure point, but it gets reset during the bus scan and slave interactions don't resume.
Any suggestions on root cause, or what to do next to get the example working?
Regards
M
Versions:
Beta Was this translation helpful? Give feedback.
All reactions