Check this out: http://www.piclist.com/techref/microchip/math/bit/mask.htm It was perfect for me... Gonzalo ----- Mensaje original ----- De: "Mitch Miller" Para: Enviado: Miircoles 14 de Febrero de 2001 9:31 AM Asunto: Re: [PIC] Easy way to convert # to bit position? | >> I'm pretty sure this is a stupid question, but is | >> there an easy way to convert a number into it's | >> appropriate bit position? | -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body