But that IS a triangle wave. I don't understand your "unless" bit. That's how you make a triangle in Spice. Its standard practice. A triangle IS a subset of the generalised spice pulse waveform, so, Spice does offer a triangle as a matter of fact.
Every 250ms you'll get an answer, after 2 seconds all 16 possible combinations will have cycled by.
--
Tim Wescott
Control systems, embedded software and circuit design
I'm looking for work! See my website if you're interested
http://www.wescottdesign.com
Then use square waves. Or offset the sine waves by 90 degrees so they will peak simultaneously (cuz cos(0) = 1, so cos(0.5 * 0) + cos(1 * 0) + cos(2 * 0) + cos(4 * 0) = 4).
--
Tim Wescott
Control systems, embedded software and circuit design
I'm looking for work! See my website if you're interested
http://www.wescottdesign.com
Doesn't even need to be a .TRAN, .DC also has stepping capability. ...Jim Thompson
--
| James E.Thompson | mens |
| Analog Innovations | et |
| Analog/Mixed-Signal ASIC's and Discrete Systems | manus |
| STV, Queen Creek, AZ 85142 Skype: skypeanalog | |
| Voice:(480)460-2350 Fax: Available upon request | Brass Rat |
| E-mail Icon at http://www.analog-innovations.com | 1962 |
Thinking outside the box... producing elegant solutions.
Try cos(ft) then - that starts with the main in phase peak.
I think for what you want to do the requirement to search all extrema is that that periods must be mutually prime so that they have quite a long repeat cycle with every fractional phase represented.
1,1/3,1/5,1/7 ought to do it nicely.
Waveforms peaking at pi/2 for (2n+1)pi/2 respectively
What aspect of op amp input offsets would make you think they are not jointly normally distributed? The input offsets are combined in a very simple linear equation so they have no impact on one another.
You have a lot of answers showing you how to get 8mV systematically, but the question I would ask is whether that's at all a meaningful figure to design around.
I don't think "2mV worst-case offset" is at all a hard limit; some opamps list "guaranteed maximums" where I assume they're testing every part to spec before it ships - I don't see such a guarantee in the ADA4817 datasheet. If they're just sampling it could be anything really, with a decreasing amount of probability. It also doesn't cost 15 bucks
Basically my point is that intuitively it seems way more likely that you'd get a straight up defective single unit that threw the whole thing out of whack by 50mV than four sloppy-but-in-spec parts that all conspired in just the right way to give you the "derived" 8mV figure, and I bet the grunt math would bear this out. So like, why is this a meaningful figure for design.
Do we know that op amp input offsets are normally distributed, though? Usually in the context of worst-case design for a single amp it doesn't really matter what the exact distribution of the offset is.
If every offset source is assumed to be jointly normal iid here then yeah, every partial sum is also jointly normal iid and the final output-referred offset is jointly normal iid as well, and the linear summation all works great. It would also work fine if you had some other weird distribution for the offset sources V1 and V2 and just summed those, as they're not conditionally dependent on anything and you could just theoretically convolve the distributions to get the distribution of the sum.
However, the output-referred offsets of U4 and U6 are conditionally dependent on what the offsets of U1 and U5 are, and if those offsets aren't actually jointly normal I think that implies a problem for the mathematical justification of the sum you wrote down.
In any case in thinking about it's probably moot, at least for simulation/pen and paper there doesn't seem to be much other option other than to make assumptions about the distribution off the offsets you're pulling from for any particular part as that stuff's not included in any model, you'd need real-world data, and if the manufacturer knows that it's something other than normal they likely aren't telling.
It is indeed a dumb idea to do in simulation without real parts though, as I seemed to have been assuming there was some kind of random variable actually in the model to discover. Which there isn't. It's all right there.
-- | James E.Thompson | mens | | Analog Innovations | et | | Analog/Mixed-Signal ASIC's and Discrete Systems | manus | | STV, Queen Creek, AZ 85142 Skype: skypeanalog | | | Voice:(480)460-2350 Fax: Available upon request | Brass Rat | | E-mail Icon at
formatting link
| 1962 |
Thinking outside the box... producing elegant solutions.
I don't think ADI would ever ship a part with 2 mV offset; they probably guardband that. Some parts have histograms of the production distribution, and never show outliers past the max spec. Well, they wouldn't.
Defective singles are bad and need to be replaced. That is rare.
If I assume, say, +-5 mV I'll probably never see one past that. +-8, never.
I need to trim the unit to +-1 mV with some guardband, so the question is how much trim range I should plan for.
--
John Larkin Highland Technology, Inc
jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com
ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here.
All logos and trade names are the property of their respective owners.