Implementation of the avr305 application note