> Can anyone point me where can I find some theory on the net? The term I know is 'minimal change ordening' (referring to permutations) and 'gray code'. This might not be exactly what you are looking for. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads