Using a PIC, has anybody figured out a good way to take a number from zero to seven (0 to 7) and use it to generate the corresponding bit mask (i.e., 00000001, 00000010, 00000100, etc.)? This is bound to be an old problem solved long ago by gurus more wiser than me. Who has the best code snipet for doing this operation? -- ------------------------------------------------------ /\ Frank Dalton (fdalton@pineinst.com) //\\ Pine Instrument Company ///\\\ 101 Industrial Drive ////\\\\ Grove City, PA 16127 || (412) 458-6391 || www.pineinst.com ------------------------------------------------------