not sure i fully understand your suggestion. could you provide a a few line= s of code for me to view? thank you >> On a PIC16F88, I would use: >> #define LED1 PORTAbits.RA0 > In most cases this will put you at the mercy of the Read-Modify-Write=20 > problem. Better define a bit in a porta-shadow register, chacge that=20 > bit, and copy it to PORTA after each change of any bit. > --=20 > Wouter van Ooijen > -- ------------------------------------------- > Van Ooijen Technische Informatica: www.voti.nl > consultancy, development, PICmicro products > docent Hogeschool van Utrecht: www.voti.nl/hvu > C++ on uC blog: http://www.voti.nl/erblog --=20 Bill Key fingerprint =3D DB4D 251B FE8A BDCD 2BE4 E889 13F1 78D0 A386 B32B --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .