I definitely will try assembly once I have the logic figured out. I wrote t= he above code and I just have this niggling doubt that that is the best way= to do it, i wonder if i=92m missing some major optimisation or something. >=20 > Your code aside, if you're looking for speed maybe you should be writing = it in assembly?=20 --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .