- Implement a TWI slave using the USI peripheral found in AVR tiny MCUs - using attiny85 as target (has no bootloader section!) - USI peripheral in general needs clock stretching support from the master since the whole statemachine is software based. For now the actual writing to flash/eeprom is also done during clock stretching (like original twiboot implementation). This might be changed later. - ACK/NAK handling is different: For TWI peripheral the ACK/NAK of the *next* byte has to be returned by TWI_data_write(). For USI peripheral the ACK/NAK of the *current* byte needs to be returned. For now the TWI version remains in the code and might be changed later.
2.6 KiB
2.6 KiB