Hi,
Thanks Klaus for the reply.
I need to have a DC signal proportional to the width of the square wave. The input waveform varies from 0 to 3.3V.
I have two queries.
a)With Respect to AD637, can we use it with unipolar supply (ie ground and -Vs connected to ground itself).
b) Since I don't need any exact calculation, are there any simple circuits which can give DC (average) equivalent value of an input square wave signal. The frequency of signal is 50Hz.
In correct terminology you want (correct me if I´m wrong)
* to measure the
duty cycle of a 0V/3.3V pulse wave with a frequency of 50Hz.
If so: "RMS" is a "no go", because it is
not linear with duty cycle.
--> so, forget about AD537.
If you need an analog value: then there are some things to consider
* a
low pass filter will get the average of the input signal and is linear with duty cycle. However, it relies on accurate and stable 0V and 3.3V levels (which usually depend on VCC and load current and thus are not very precise). And a low pass filter has two other known problems: 1) The output will always carry some amount of remaining voltage ripple.
2) the output takes time to settle. and since it approximates the target voltage it never will be perfect.
So you need to consider
* how much
ripple voltage is allowed
* how
much time is it allowed to take until the voltage error is below
your defined level.
****
If you use a microcontroller, I recommend (likeBrian) not to use any analog circuit at all, just use the "input capture" feature to measure timings. And do the duty cycle calculation (and filtering) in software.
Klaus