Alan, Ok, so it would be best to go to a 684 which has a PWM in it. Would=20 I set up the PWM for 1 second and then call it when I want it? Thanks, rich! On 7/18/2014 4:51 AM, alan.b.pearce@stfc.ac.uk wrote: > No, the comparator modules are not the Output Compare modules. > > The Output Compare modules are often used to generate PWM or similar, the= comparator modules are analogue peripherals. > > > >> Alan, >> It still sounds like the 628 would be the one to use. It has compa= rator units >> in it. For a moment I thought I knew what to do and then I lost it. Hum. >> Would someone please take the time to sit down and write some C code tha= t >> would do these things? I know that I am asking a lot but I really need t= he help >> with this. >> Thanks, >> rich! >> --=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 .