Can the ATTINYx5 use its universal serial interface for a better UART than the Sofware Serial library alone? If so, is there a library or tutorial for this?


AVR307 describes implementation of a half duplex UART implementation using the USI. Note that full duplex is not possible due to the synchronous design of the USI.

  • That implementation uses ISR(TIMER0_OVF) to clock bits in and out. This is not needed on the ATtinyX5, since you will clock the USI from TIM0_COMPA and set timer0 to CTC mode instead of periodically reloading the seed. – Edgar Bonet Feb 4 '16 at 16:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.