ON 20090416@2:48:07 PM at page: On a web page you were interested in at: http://www.piclist.com/microchip/math/bit/whatbit.htm#39919.4577199074 James Newton[JMN-EFP-786] published post 39919.4577199074 It's worth noting that these rquire that only one bit be set. If you have more than one bit set, the operation (value & -value) removes all bits except the lowest set bit - essentially a complement, addition of one, (two's complement) and then an and operation with the original value.

-Adam Davis |Delete 'P-' before: '' but after: '