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

Pure master is blocking itself after first transmission #6

Open
lucullusTheOnly opened this issue Jan 25, 2018 · 1 comment
Open

Pure master is blocking itself after first transmission #6

lucullusTheOnly opened this issue Jan 25, 2018 · 1 comment

Comments

@lucullusTheOnly
Copy link
Owner

When using the TinyWire library as a pure master it seems to block itself after the first transmission.

This issue was found on arduino.stackexchange.com. The asker used an ATTiny85 as the master and an Arduino UNO as a slave. I have confirmed this with my own ATTiny85 and an Arduino Nano.

@lucullusTheOnly
Copy link
Owner Author

In my circuit the library sends error code 6, which is an unexpected stop condition in the NOISE_TESTING define block in the function USI_TWI_Start_Read_Write. Even when resetting the flag after we detected a Stop condition with the PinChange interrupt does not solve the issue. Maybe the flag reacts also to low noise on the line or it is set after a longer period of time (longer than 7us). This issue doesn't show up, if you initialize the library as slave, because then it executes Twi_master_init() directly before it starts sending, which resets all USI flags.

For now I have deactivated the NOISE_TESTING block. It is the question, if this block is really usefull.

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