>I'm all for safety, don't get me wrong. But if someone is building something that >controls line power, such as the triac control mentioned in AN521, he/she needs to >take precautions building it and fiddling around with it. It doesn't matter whether >there's a PIC in it or not. You don't need to stop designing it when you decide to put a >PIC in it. But AN521 does not mention a word on safety. And the worst thing is that it claims to be more reliable than previously published methods. This is really misleading. "This application note describes a simple method for measuring parameters from the AC power line. Parameters such as zero crossing, frequency, and relative phase can be measured. This method is useful for measurements on 50, 60, and 400 Hz power systems with voltages up to several hundred volts. The method requires only one external component, a resistor, and is more reliable than previously published methods using capacitors or bulky, expensive transformers." Regards, Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist