??? 08/07/05 12:00 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#98954 - Values need a change Responding to: ???'s previous message |
Prahlad said:
I intend to use the comparators inside LPC922 for Zero cross detection of Supply mains. I will use a 220V to 2.5V step down transformer for feeding the signal shown. The Vcc = 3V for the system. Resistor values I have copied from a National AppNote. I have one doubt the app note shows Vcc = 15V. Do I need to change the resistor values with my Vcc=3V or its fine. Yes, values need a change! The original circuit from National shows some remarkable features: Negative voltages are suppressed by an offseting technique which works ratiometric, means where changes of supply voltages have no influence on precision, and where no voltage drop of diode is part of the cancellation network. This will result in a very stable zero cross detection. But it still needs two things to work properly: A comparator providing low and stable offset, which isn't realized with the LPC9xx comparator, probably, and low leaking diodes, which is no problem with higher supply voltages, but with +3V as in your case. The inital offset can be adjusted, that's no problem. The question is, how much the offset will drift. And there's no data in the datasheet... The problem with diodes is, that they must surely limit unsane voltages to the LPC9xx, but on the other hand must not leak with the potentials being applied, when the signal goes through zero. Otherwise the offseting circuit would be mistuned and phase errors would develop. So, I would recommend the use of two small signal Schottky diodes and a red LED, which is much steeper than a simple zener diode or standard diodes (two 1N4148, put in series to form a 1.4V "zener" diode): ![]() The red LED is used here as ultra low leakage zener diode: At 1V less than 1nA flows through it!! A standard diode like 1N4148, on the other hand, lets a current of 1µA flow at 0.25V! How to calibrate the circuit? Connect the transformer to the input, as if you would want to run the circuit, but don't connect the primary side to mains. Now, carefully turn the 1k cermet trimmer (20 turns!) up to the moment, where the comparator flips. Now, turn the trimmer to opposite direction. Again, the comparator will flip. Finally, turn the trimmer just to the middle point of this range. Two further comments: 1. Hysteresis with shown values is in the 10mV range. You might want to have a smaller hysteresis. Then, increase the feedback resistor to 10MOhm. 2. Schematic assumes that +3V is clean. If it's not, insert a RC low pass filter of about 100Ohm + 100nF, or so. Prahlad, this circuit will work nicely. But precision suffers from unpredictable drift performance of LPC9xx. A better approach would use a precision comparator fed by a bipolar supply voltage (+-15V), but would cost much more components, of course. Kai |
Topic | Author | Date |
LPC9xx Comparators and Hysterisis | 01/01/70 00:00 | |
Feedback resistor is not enough | 01/01/70 00:00 | |
Is this allright | 01/01/70 00:00 | |
Tested it. | 01/01/70 00:00 | |
calculations | 01/01/70 00:00 | |
Re: Calculations. | 01/01/70 00:00 | |
step down rartio | 01/01/70 00:00 | |
Values need a change | 01/01/70 00:00 | |
Please show the analyses | 01/01/70 00:00 | |
Re: Value Changes. | 01/01/70 00:00 | |
my doubt is | 01/01/70 00:00 | |
Answers | 01/01/70 00:00 | |
1N914 not Zener. | 01/01/70 00:00 | |
Silent at many places | 01/01/70 00:00 | |
Low pass filter | 01/01/70 00:00 | |
Answer | 01/01/70 00:00 | |
Zero crossing detection | 01/01/70 00:00 | |
Thanks![]() | 01/01/70 00:00 |