A few days before, I wanted to design a programmable filter with UAF42. Luckily,(or unluckily) I found an application note which name is 'Digitally Programmable, Time-Continuous Active Filter ' on website http://www.ti.com/product/uaf42. After I finished the circuit referring to the application note, however, the output wave isn't correct.
So, I analyzed the application note carefully. I found there's a mistake in it.
We can change UAF42's cutoff frequency by changing the resister between pin 13, 8 and pin 14, 7. Furthermore, if we want to create a 'programmable' filter, we can use a DA converter to change the equivalent resister between pin13, 8 and pin14, 7, just like the figure below.
The application note is theoretically right, but actually, it doesn't work.
Here are my equations:
I=(V'-Vout)/Rf1;
V'=-code/4096*Vref;
Requ=(Vref-Vout)/I;
Vout≈0;
Hence,
Requ=Vref/I
=Vref/(V'/Rf1)
=Vref/V'*Rf1
=-4096/code*Rf1
So, the equivalent resister Requ between pin 13, 8 is a 'negative' resister. It's amazing! Of course the circuit won't achieve our desired function.
After I added a voltage inverter between OPA627's output pin and Rf1; the circuit finally worked very well.
My analyses are listed above. What do you think?
If the application note is really wrong, I hope TI's employee can correct the application note to prevent others make the same mistake.