Hey guys, First, RE: the first macro, with very many rrfs, no problem about tha small screw-ups - managed to fix them in about 10 secs. Second, now I realize that the expanded loops are the same speed as loops, I still prefer to use loops - it gives tidyer, cleaner code. Also, it's very easy to add more pins. Another thing, I figured in PWM the whole point is to get the timing accurate, hence why it is important for the on and off code to be symetrical. Also, I will try Bob's idea of getting all the bits ready, and then moving them into the port. This should further help to get even fading. Also RE Bob, if the the code not being iosync is a problem, it should be easy to pad it out with NOPs. -- Dave All us base are belong to you. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist