Peter Cousens wrote: > Before writing the code from scratch, does anyone have a routine > that could be used as a basis for this. I've done a similar one recently on a 16C71, so let me know if I can help out. PS. Shorting the points out for 1, 2 3, or 4 cycles doesn't work very well. -- Best regards Tony Multimedia 16F84 Beginners PIC Tools. http://www.picnpoke.com Email picnpoke@cdi.com.au