One approach is to have a switched invert/noninvert amplifier, and switch at the reversing points. A differentiator will give you the reversing points. paul perry melbourne Australia