Square Rooting Circuit with AD633 Not Working - Page 1
Forum section: electronics / beginners

author: Chance92
author_rank: Regular Contributor
timestamp: July 11, 2022, 01:34:34 pm
content: Update 1: I have attached the .asc file for the simulation.Thanks for clicking my post. I am trying to building a circuit that can do this:output = (input12+input22)0.5After some googling, I decided to use AD633 to do this. I basically copied the squaring and square rooting examples from the datasheet and added a summing circuit:Here are the examples from the datasheet:However, the simulation results are very strange:It can be seen that the output from the summing section is correct (V(sum)), but the output from the square rooting section is wrong, and it is stuck at -8.01V. The datasheet says: 'The 1N4148 diode is required to prevent latchup, which can occur in such applications if the input were to change polarity, even momentarily.' Seems to me this is probably a 'latchup', as you can see from the results that the voltage before the diode is -15V. It seems the diode tried to prevent the 'latchup' but failed. What I don't understand is the input to this section has always been negative, why would this happen? By the way, I have simulated the square rooting section by its own and it works fine.I produced this circuit on a breadboard and the results were similar to the simulations. The squaring+summing and the square rooting works fine by themselves, but they clearly don't like each other when connected together. I have tried switching to different op-amps and/or diodes. Some of them works better than others, but this 'latchup' can still happen sometime, especially when the input signal is very low.What am I doing wrong?Thanks for your time.I have attached the datasheet for AD633 as well.

author: Chance92
author_rank: Regular Contributor
timestamp: July 11, 2022, 01:37:10 pm
content: Please could someone kindly tell me how I can attached inline pictures?

author: RoGeorge
author_rank: Super Contributor
timestamp: July 11, 2022, 01:46:53 pm
content: The inline pics is a plugin that doesn't work any more, and will probably not working in the future either, there are some software compatibility problems.To inline pictures, you post them at the end, then view your post, click on the pics to see them big, then right click to find the link to the big displayed pic, then edit your post and put the link between img tags (there is a button in the editor called 'Insert Image').

author: Chance92
author_rank: Regular Contributor
timestamp: July 11, 2022, 01:51:38 pm
content: Quote from: RoGeorge on July 11, 2022, 01:46:53 pmThank you very much! That's one problem solved.

author: ledtester
author_rank: Super Contributor
timestamp: July 11, 2022, 02:13:58 pm
content: Can you post the .asc file?

author: Chance92
author_rank: Regular Contributor
timestamp: July 11, 2022, 06:09:22 pm
content: Quote from: ledtester on July 11, 2022, 02:13:58 pmThanks. I have attached the .asc file in the original post as advised.

author: ledtester
author_rank: Super Contributor
timestamp: July 12, 2022, 12:37:55 am
content: First, have you checked that your model works for the "Figure 13" circuit?I have included the .sub for the AD633 which I found here (as a .circ file):https://www.analog.com/en/products/ad633.html#product-evaluationkitI've also included the auto-generated .asy file and a schematic of the Figure 13 circuit.The .txt suffixes were added so I could include them as attachments.File placement: my .sub file is in the lib/sub directory and the .asy file is in the lib/sym/AutoGenerated directorySecondly, don't know if this matters, but in Figure 15 there is a cap parallel to the diode. And have you checked just the Figure 15 circuit by itself?

author: Chance92
author_rank: Regular Contributor
timestamp: July 12, 2022, 08:27:03 am
content: Quote from: ledtester on July 12, 2022, 12:37:55 amThanks for sharing these. I managed to run your circuit successfully. The results seems correct:I have isolated the squaring + summing and they seem to work fine:While simulating the square rooting circuit (the one in Figure 15.), I have found something interesting. DC test shows the circuit works fine with DC inputs, as long as they are smaller than -6mV. If the input is larger than this (say -4mV), the output will be locked to -8V from the start. This is probably what happened in the original simulation. Further tests show that once this happens, it will required an input <-4.76V to push the output to the positive side. After that the circuit can operate normally, but with a big ripple. By the way I have added the missing cap:I think this has also been observed during the bread board experiment.