Electronic – I2C Slave on ATtiny841

attinyavri2ctwi

I am using an ATtiny841 microcontroller as an I2C slave, but I have difficulty finding information on it. So for, all I have are application notes and reference code for TWI and USI module.

It seems like ATtiny841 has a unique TWI slave interface, which is slightly different. Although I could write out the code manually it would really help if there is a standard sample code that I can refer to.

Any suggestions?

Thanks in advance.

Best Answer

You should be able to use the TWI example code as-is, since TWI is I2C: What is difference between I2C and TWI?