Skip to content

ATTiny Series 1 TWI Repeated Start #1083

Answered by MX682X
RAnalog asked this question in Q&A
Discussion options

You must be logged in to vote

When implementing the Wire Library I noticed that it doesn't seem to matter if START or REPSTART is issued, the Hardware automatically does a REPSTART if there was no STOP condition.
And as the START command is issued anytime the MADDR register is written, I don't see any practical use of the REPSTART command, except on continous writing to the same slave, which again can be implemented by just writing the same Address to the MADDR Register.
It is entioned that the CMD in MCTRLB is a strobe, thus executed immediately, like the STOP Command.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@RAnalog
Comment options

Answer selected by RAnalog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants