In article , Tom Becker wrote: [...]
I assume you are doing this to drop out part or all of the loop filter:
----/\\/\\/--+-----+--- ! ! --- --- --- --- ! ! Pin-------- GND
There can still be a bit of an issue with the capacitor trapping an error when you switch the bandwidth. Too bad the CA3080 is going away, there is a cute circuit to make the bandwidth smoothly sweep from one to the other using it. You may be able to do this however:
----/\\/\\/--+-----+--- ! ! ! --- ! --- ! ! ! GND ! ! Gain=1 +--!>--- ! ! ! \\ ! / ! \\ ! ! 1/3 O O CD4053 ^ ............. CPU pin ! --- --- ! GND
You start off with the amplifier charging the capacitor. If you just randomly switched to having the capacitor filtering, the ripple voltage would get trapped and cause a phase offset.
You can solve this by making the switch at just the point where the ripple crosses through the center line. You will still trap noise but not ripple.
If you really want to have some fun, you could try PWMing the switch slowly from 100% the amplifier to 100% filtering. I haven't really thought this through but I throw it out there.