Hi Microa, Since this thread is devoted to PIC, I started another one to show an example implementing the same thing on ATTiny10: ATTiny starter code