Wouter van Ooijen wrote: >> PORTD |= 1<<0; > > But *do google for "read modify write problem"*. The above line might > *fail* on a PIC (with all compilers). The above line will turn on the intended bit. The failure is that it might alter other bits. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist