> Analog comparator, contrary to what was going through > my mind (using the ADC, which wouldn't be that fast, > probably) For a high frequency drive that would be true, although the actual frequency used will depend on the coil being driven, eg the trend towards higher freqencies and smaller inductors in newer SMPS likely wouldn't carry over into larger coils like power transformers and large-ish motors Joe --=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 .