Sample & hold error

--
The output needs to feed a virtual ground?
Reply to
John Fields
Loading thread data ...

--
With emitter followers on the opamp non-inverting inputs, what the
non-inverting inputs will see is:


    S
    |
   [R1]
    |
 [DIODE]
    |
    +------|+\
    |      |  >
   [R2}    |-/ 
    |
   GND

So, no matter where "IN" on your schematic might go, the opamp
non-inverting inputs will be clamped to S - 0.7V * R2 / R1+R2.
Reply to
John Fields

The only issue I'm seeing running the cct single ended is the inability for Vout to go rail to rail, and of course the switching tr on the input means the input doesnt either. Those should be livable with in this app.

NT

Reply to
NT

Tr base R only allows very little i into the base & out of the emitter. It causes a little unwanted emitter i that's dealt with by the following R to ground. The current from the input terminal is a good 50x as high as Ibase. So with 0v on the input terminal and Vcc on S, opamp +in sits at under a volt, just creating an input offset.

NT

Reply to
NT

accuracy

apx

worse

feeling

to

and

four

ADC

An R-2R ladder avoids precision resistors.

?-)

Reply to
josephkk

Only that it can't work.

John

Reply to
John Larkin

On Sun, 02 Oct 2011 10:02:44 -0700, John Larkin wrote:

--- Version 4 SHEET 1 1560 852 WIRE -80 -624 -80 -656 WIRE 1024 -624 1024 -656 WIRE 160 -496 160 -512 WIRE 1264 -496 1264 -512 WIRE -80 -480 -80 -544 WIRE -32 -480 -80 -480 WIRE 128 -480 48 -480 WIRE 1024 -480 1024 -544 WIRE 1072 -480 1024 -480 WIRE 1232 -480 1152 -480 WIRE 288 -464 192 -464 WIRE 320 -464 288 -464 WIRE 432 -464 400 -464 WIRE 1392 -464 1296 -464 WIRE 1424 -464 1392 -464 WIRE 1536 -464 1504 -464 WIRE 128 -448 96 -448 WIRE 1232 -448 1200 -448 WIRE 160 -416 160 -432 WIRE 1264 -416 1264 -432 WIRE -224 -368 -368 -368 WIRE -32 -368 -128 -368 WIRE 96 -368 96 -448 WIRE 96 -368 48 -368 WIRE 176 -368 96 -368 WIRE 288 -368 288 -464 WIRE 288 -368 256 -368 WIRE 880 -368 736 -368 WIRE 1072 -368 976 -368 WIRE 1200 -368 1200 -448 WIRE 1200 -368 1152 -368 WIRE 1280 -368 1200 -368 WIRE 1392 -368 1392 -464 WIRE 1392 -368 1360 -368 WIRE -80 -320 -80 -480 WIRE 1024 -320 1024 -480 WIRE -288 -256 -464 -256 WIRE -176 -256 -176 -304 WIRE -176 -256 -208 -256 WIRE 816 -256 640 -256 WIRE 928 -256 928 -304 WIRE 928 -256 896 -256 WIRE 160 -208 160 -224 WIRE 1264 -208 1264 -224 WIRE -80 -192 -80 -240 WIRE -32 -192 -80 -192 WIRE 128 -192 48 -192 WIRE 1024 -192 1024 -240 WIRE 1072 -192 1024 -192 WIRE 1232 -192 1152 -192 WIRE 288 -176 192 -176 WIRE 320 -176 288 -176 WIRE 432 -176 432 -464 WIRE 432 -176 400 -176 WIRE 1392 -176 1296 -176 WIRE 1424 -176 1392 -176 WIRE 1536 -176 1536 -464 WIRE 1536 -176 1504 -176 WIRE 128 -160 96 -160 WIRE 1232 -160 1200 -160 WIRE 160 -128 160 -144 WIRE 1264 -128 1264 -144 WIRE -368 -80 -368 -368 WIRE -224 -80 -368 -80 WIRE -32 -80 -128 -80 WIRE 96 -80 96 -160 WIRE 96 -80 48 -80 WIRE 176 -80 96 -80 WIRE 288 -80 288 -176 WIRE 288 -80 256 -80 WIRE 736 -80 736 -368 WIRE 880 -80 736 -80 WIRE 1072 -80 976 -80 WIRE 1200 -80 1200 -160 WIRE 1200 -80 1152 -80 WIRE 1280 -80 1200 -80 WIRE 1392 -80 1392 -176 WIRE 1392 -80 1360 -80 WIRE -80 -32 -80 -192 WIRE 1024 -32 1024 -192 WIRE -464 32 -464 -256 WIRE -288 32 -464 32 WIRE -176 32 -176 -16 WIRE -176 32 -208 32 WIRE 640 32 640 -256 WIRE 816 32 640 32 WIRE 928 32 928 -16 WIRE 928 32 896 32 WIRE 160 80 160 64 WIRE 1264 80 1264 64 WIRE -80 96 -80 48 WIRE -32 96 -80 96 WIRE 128 96 48 96 WIRE 1024 96 1024 48 WIRE 1072 96 1024 96 WIRE 1232 96 1152 96 WIRE 288 112 192 112 WIRE 320 112 288 112 WIRE 432 112 432 -176 WIRE 432 112 400 112 WIRE 1392 112 1296 112 WIRE 1424 112 1392 112 WIRE 1536 112 1536 -176 WIRE 1536 112 1504 112 WIRE 128 128 96 128 WIRE 1232 128 1200 128 WIRE 160 160 160 144 WIRE 1264 160 1264 144 WIRE -368 208 -368 -80 WIRE -224 208 -368 208 WIRE -32 208 -128 208 WIRE 96 208 96 128 WIRE 96 208 48 208 WIRE 176 208 96 208 WIRE 288 208 288 112 WIRE 288 208 256 208 WIRE 736 208 736 -80 WIRE 880 208 736 208 WIRE 1072 208 976 208 WIRE 1200 208 1200 128 WIRE 1200 208 1152 208 WIRE 1280 208 1200 208 WIRE 1392 208 1392 112 WIRE 1392 208 1360 208 WIRE -80 256 -80 96 WIRE 1024 256 1024 96 WIRE -464 320 -464 32 WIRE -288 320 -464 320 WIRE -176 320 -176 272 WIRE -176 320 -208 320 WIRE 640 320 640 32 WIRE 816 320 640 320 WIRE 928 320 928 272 WIRE 928 320 896 320 WIRE 160 368 160 352 WIRE 1264 368 1264 352 WIRE -80 384 -80 336 WIRE -32 384 -80 384 WIRE 128 384 48 384 WIRE 1024 384 1024 336 WIRE 1072 384 1024 384 WIRE 1232 384 1152 384 WIRE 288 400 192 400 WIRE 320 400 288 400 WIRE 432 400 432 112 WIRE 432 400 400 400 WIRE 1392 400 1296 400 WIRE 1424 400 1392 400 WIRE 1536 400 1536 112 WIRE 1536 400 1504 400 WIRE 128 416 96 416 WIRE 1232 416 1200 416 WIRE 160 448 160 432 WIRE 1264 448 1264 432 WIRE -368 496 -368 208 WIRE -224 496 -368 496 WIRE -32 496 -128 496 WIRE 96 496 96 416 WIRE 96 496 48 496 WIRE 176 496 96 496 WIRE 288 496 288 400 WIRE 288 496 256 496 WIRE 736 496 736 208 WIRE 880 496 736 496 WIRE 1072 496 976 496 WIRE 1200 496 1200 416 WIRE 1200 496 1152 496 WIRE 1280 496 1200 496 WIRE 1392 496 1392 400 WIRE 1392 496 1360 496 WIRE -80 544 -80 384 WIRE 1024 544 1024 384 WIRE -464 608 -464 320 WIRE -304 608 -464 608 WIRE -176 608 -176 560 WIRE -176 608 -224 608 WIRE 640 608 640 320 WIRE 800 608 640 608 WIRE 928 608 928 560 WIRE 928 608 880 608 WIRE -80 672 -80 624 WIRE 1024 672 1024 624 WIRE -464 704 -464 608 WIRE -368 704 -368 496 WIRE -272 704 -272 688 WIRE 640 704 640 608 WIRE 736 704 736 496 WIRE -464 832 -464 784 WIRE -368 832 -368 784 WIRE -272 832 -272 784 WIRE 640 832 640 784 WIRE 736 832 736 784 FLAG 160 -416 0 FLAG 160 -128 0 FLAG 160 160 0 FLAG 160 448 0 FLAG 160 -512 +v FLAG 160 -224 +v FLAG 160 64 +v FLAG 160 352 +v FLAG -80 -656 +v FLAG -80 672 0 FLAG -464 832 0 FLAG -368 832 0 FLAG -272 832 0 FLAG -272 688 +v FLAG 1264 -416 0 FLAG 1264 -128 0 FLAG 1264 160 0 FLAG 1264 448 0 FLAG 1264 -512 +v FLAG 1264 -224 +v FLAG 1264 64 +v FLAG 1264 352 +v FLAG 1024 -656 +v FLAG 1024 672 0 FLAG 640 832 0 FLAG 736 832 0 SYMBOL Opamps\\LT1001 160 -528 R0 SYMATTR InstName U1 SYMBOL res 272 -384 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R1 SYMATTR Value 1e6 SYMBOL res 64 -384 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R2 SYMATTR Value 10k SYMBOL res 416 384 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R3 SYMATTR Value 10k SYMBOL Opamps\\LT1001 160 -240 R0 SYMATTR InstName U2 SYMBOL res 416 96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R6 SYMATTR Value 20k SYMBOL Opamps\\LT1001 160 48 R0 SYMATTR InstName U3 SYMBOL res 416 -192 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R9 SYMATTR Value 40k SYMBOL Opamps\\LT1001 160 336 R0 SYMATTR InstName U4 SYMBOL res 416 -480 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R12 SYMATTR Value 80k SYMBOL pnp -128 -304 M270 SYMATTR InstName Q1 SYMBOL pnp -128 -16 M270 SYMATTR InstName Q2 SYMBOL pnp -128 272 M270 SYMATTR InstName Q3 SYMBOL pnp -128 560 M270 SYMATTR InstName Q4 SYMBOL res -96 -640 R0 SYMATTR InstName R17 SYMATTR Value 1k SYMBOL res -96 -336 R0 SYMATTR InstName R14 SYMATTR Value 1k SYMBOL res -96 -48 R0 SYMATTR InstName R15 SYMATTR Value 1k SYMBOL res -96 240 R0 SYMATTR InstName R16 SYMATTR Value 1k SYMBOL res -96 528 R0 SYMATTR InstName R18 SYMATTR Value 1k SYMBOL res 64 -96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R5 SYMATTR Value 10k SYMBOL res 64 192 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R8 SYMATTR Value 10k SYMBOL res 64 480 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R11 SYMATTR Value 10k SYMBOL res -192 -272 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R22 SYMATTR Value 10k SYMBOL res -192 16 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R23 SYMATTR Value 10k SYMBOL res -192 304 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R24 SYMATTR Value 10k SYMBOL res -208 592 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R25 SYMATTR Value 10k SYMBOL voltage -368 688 R0 WINDOW 3 24 104 Invisible 0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value PULSE(0 10 0 1 1 1u 2) SYMATTR InstName V1 SYMBOL voltage -464 688 R0 WINDOW 3 24 104 Invisible 0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value PULSE(0 10 .9 1u 1u) SYMATTR InstName V2 SYMBOL voltage -272 688 R0 WINDOW 3 24 104 Invisible 0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value 10 SYMATTR InstName V3 SYMBOL res 272 -96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R4 SYMATTR Value 1e6 SYMBOL res 272 192 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R7 SYMATTR Value 1e6 SYMBOL res 272 480 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R10 SYMATTR Value 1e6 SYMBOL res 64 -496 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R27 SYMATTR Value 100k SYMBOL res 64 -208 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R13 SYMATTR Value 100k SYMBOL res 64 80 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R19 SYMATTR Value 100k SYMBOL res 64 368 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R20 SYMATTR Value 100k SYMBOL Opamps\\LT1001 1264 -528 R0 SYMATTR InstName U5 SYMBOL res 1376 -384 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R21 SYMATTR Value 1e6 SYMBOL res 1168 -384 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R26 SYMATTR Value 10k SYMBOL res 1520 384 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R28 SYMATTR Value 10k SYMBOL Opamps\\LT1001 1264 -240 R0 SYMATTR InstName U6 SYMBOL res 1520 96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R29 SYMATTR Value 20k SYMBOL Opamps\\LT1001 1264 48 R0 SYMATTR InstName U7 SYMBOL res 1520 -192 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R30 SYMATTR Value 40k SYMBOL Opamps\\LT1001 1264 336 R0 SYMATTR InstName U8 SYMBOL res 1520 -480 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R31 SYMATTR Value 80k SYMBOL res 1008 -640 R0 SYMATTR InstName R32 SYMATTR Value 1k SYMBOL res 1008 -336 R0 SYMATTR InstName R33 SYMATTR Value 1k SYMBOL res 1008 -48 R0 SYMATTR InstName R34 SYMATTR Value 1k SYMBOL res 1008 240 R0 SYMATTR InstName R35 SYMATTR Value 1k SYMBOL res 1008 528 R0 SYMATTR InstName R36 SYMATTR Value 1k SYMBOL res 1168 -96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R37 SYMATTR Value 10k SYMBOL res 1168 192 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R38 SYMATTR Value 10k SYMBOL res 1168 480 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R39 SYMATTR Value 10k SYMBOL res 912 -272 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R40 SYMATTR Value 10k SYMBOL res 912 16 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R41 SYMATTR Value 10k SYMBOL res 912 304 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R42 SYMATTR Value 10k SYMBOL res 896 592 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R43 SYMATTR Value 10k SYMBOL voltage 736 688 R0 WINDOW 3 24 104 Invisible 0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value PULSE(0 10 0 1 1 1u 2) SYMATTR InstName V4 SYMBOL voltage 640 688 R0 WINDOW 3 24 104 Invisible 0 WINDOW 123 0 0 Left 0 WINDOW 39 0 0 Left 0 SYMATTR Value PULSE(10 0 .9 1u 1u) SYMATTR InstName V5 SYMBOL res 1376 -96 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R44 SYMATTR Value 1e6 SYMBOL res 1376 192 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R45 SYMATTR Value 1e6 SYMBOL res 1376 480 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R46 SYMATTR Value 1e6 SYMBOL res 1168 -496 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R47 SYMATTR Value 100k SYMBOL res 1168 -208 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R48 SYMATTR Value 100k SYMBOL res 1168 80 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R49 SYMATTR Value 100k SYMBOL res 1168 368 R90 WINDOW 0 0 56 VBottom 0 WINDOW 3 32 56 VTop 0 SYMATTR InstName R50 SYMATTR Value 100k SYMBOL npn 880 -304 R270 SYMATTR InstName Q5 SYMBOL npn 880 -16 R270 SYMATTR InstName Q6 SYMBOL npn 880 272 R270 SYMATTR InstName Q7 SYMBOL npn 880 560 R270 SYMATTR InstName Q8 TEXT -232 792 Left 0 !.tran 3

-- JF

Reply to
John Fields

You went to a lot of effort to demonstrate that it doesn't work.

John

Reply to
John Larkin

Please explain how it doesn't work, John. I'm interested.

Thanks, John S

Reply to
John S

. . .

--
Would you do less?
Reply to
John Fields

You could do a nice analog version using three not-too-expensive parts. Relay, cap, opamp. A few more if you don't like the relay.

John

Reply to
John Larkin

Certainly. A 5-state thermometer code driving a binary-weighted

16-level DAC obviously makes no sense. You don't need Spice to figure that out.

And if ADCs were this simple, don't you think somebody would be using them by now?

John

Reply to
John Larkin

--
You're right, this time, and thanks for the reality check. 

However, as far as doing less goes, we've all seen you pull out the
stops to defend an untenable position.
Reply to
John Fields

People used to make pure flash ADCs, which were thermometer codes followed by binary encoders. I worked for a place that sold a 6-bit 50 MHz version, which took 63 separate comparators. I don't know how far anybody ever pushed an IC flash converter, 8 bits certainly (255 comparators) and maybe even 10. Nowadays most fast ADCs are pipeline types.

Well, it is a discussion group. Think how dull it would be if everybody always agreed.

John

Reply to
John Larkin

--
So you prefer for it to be combative by refusing to admit to error?
Reply to
John Fields

uracy

=3D apx

e worse

eling

ime to

our

e to

es and

lers

four

g ADC

gate

eap

al

ith

as

g of

or

f

Oops! I'm working on a variation to see if something similar could work. No promises after that last attempt. :)

NT

Reply to
NT

When you get into really long hold times, you have to worry about the tempco of the capacitor. Since the charge is constant, temperature changes make the voltage go up and down. Over a day that can easily dominate the error budget.

Cheers

Phil Hobbs

--
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510
845-480-2058

hobbs at electrooptical dot net
http://electrooptical.net
Reply to
Phil Hobbs

Is that really going to hold to 1% per hour?

NT

Reply to
NT

I make errors now and then, and cheerfully admit to them. You must not have noticed.

When I do serious engineering, I check my work exhaustively, and check it again, and then I have other people check it, too. I spent the entire weekend checking a PC board schematic and layout. A total of five people are checking this board, and maybe we can Gerber on Wednesday. But this is just a newsgroup, and nothing really matters here.

Wanna see the board?

John

Reply to
John Larkin

worse

to

and

It wouldn't be hard to do it analog. Otherwise, I'd go for an ADC and a DAC.

There is another trick: a DAC, a comparator, and either an up/down counter or some SAR logic. After all, an ADC plus a DAC totals up to two DACs, and you only really need one.

John

Reply to
John Larkin

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.