I am busy right now but here a fast one.Do you think this would work? We really need a design like this. We are will to pay for the work. Any suggestions as to how I might get this done?
assume that signal is symmetrical and frequency is fixed.
Calculate the time between the zero crossing.
That time is your window for a counter ( eq count from 0 to n during this window)
Add measured voltage as function of counter. (is in fact the integral du/dt)
detect max voltage ( on the fly while adding)
now calculate the same way as above but now using the formulae max . sin(x) for x=0==> Pi ( keep same step as counter)
Compare and observe the difference.
Picbuster