Here's the setup in LTspice. Unfortunately my ancient version does not seem to support signed calculations for the current via parameters, or I do not know how to use that feature, so it uses two current sensing sources and two switches. An advantage is that one can simulate all sorts of interesting situations, such as a flux gate magnetometer measuring the Earth field by setting the saturation currents for the two semiperiods to different values. http://omploader.org/vNHg0cg -- Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist