Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #488479 > unrolled thread

Practical current mirror

Started byPiotr Wyderski <peter.pan@neverland.mil>
First post2017-12-16 19:03 +0100
Last post2017-12-24 09:24 +0100
Articles 20 on this page of 32 — 14 participants

Back to article view | Back to sci.electronics.design


Contents

  Practical current mirror Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-16 19:03 +0100
    Practical current mirror pcdhobbs@gmail.com - 2017-12-16 11:18 -0800
      Re: Practical current mirror Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-16 20:37 +0100
        Re: Practical current mirror Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2017-12-16 14:40 -0500
          Re: Practical current mirror Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-16 21:05 +0100
    Re: Practical current mirror John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-16 11:36 -0800
      Re: Practical current mirror Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-16 21:03 +0100
        Re: Practical current mirror John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-16 12:19 -0800
    Re: Practical current mirror John Larkin <jjlarkin@highlandtechnology.com> - 2017-12-16 11:54 -0800
    Re: Practical current mirror Steve Wilson <no@spam.com> - 2017-12-16 19:56 +0000
      Re: Practical current mirror Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-16 21:11 +0100
        Re: Practical current mirror Steve Wilson <no@spam.com> - 2017-12-16 21:18 +0000
    Re: Practical current mirror whit3rd <whit3rd@gmail.com> - 2017-12-16 12:57 -0800
    Re: Practical current mirror bitrex <bitrex@de.lete.earthlink.net> - 2017-12-16 16:35 -0500
      Re: Practical current mirror bitrex <bitrex@de.lete.earthlink.net> - 2017-12-16 16:52 -0500
        Re: Practical current mirror George Herold <gherold@teachspin.com> - 2017-12-16 19:18 -0800
          Re: Practical current mirror bitrex <bitrex@de.lete.earthlink.net> - 2017-12-17 01:37 -0500
            Re: Practical current mirror "Tim Williams" <tiwill@seventransistorlabs.com> - 2017-12-17 02:39 -0600
            Re: Practical current mirror krw@notreal.com - 2017-12-17 18:43 -0500
          Re: Practical current mirror Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-17 09:02 +0100
            Re: Practical current mirror krw@notreal.com - 2017-12-17 18:44 -0500
              Re: Practical current mirror Jeroen Belleman <jeroen@nospam.please> - 2017-12-18 10:46 +0100
        Re: Practical current mirror Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-17 09:13 +0100
          Re: Practical current mirror "P E Schoen" <paul@pstech-inc.com> - 2017-12-17 05:03 -0500
    Re: Practical current mirror Winfield Hill <hill@rowland.harvard.edu> - 2017-12-18 18:48 -0800
      Re: Practical current mirror boB <boB@K7IQ.com> - 2017-12-19 14:04 -0800
      Re: Practical current mirror krw@notreal.com - 2017-12-23 09:58 -0500
        Re: Practical current mirror Winfield Hill <hill@rowland.harvard.edu> - 2017-12-23 08:55 -0800
          Re: Practical current mirror krw@notreal.com - 2017-12-23 20:41 -0500
            Re: Practical current mirror whit3rd <whit3rd@gmail.com> - 2017-12-23 19:33 -0800
              Re: Practical current mirror krw@notreal.com - 2017-12-24 16:53 -0500
      Re: Practical current mirror Piotr Wyderski <peter.pan@neverland.mil> - 2017-12-24 09:24 +0100

Page 1 of 2  [1] 2  Next page →


#488479 — Practical current mirror

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-16 19:03 +0100
SubjectPractical current mirror
Message-ID<p13n6c$jti$1@node1.news.atman.pl>
Gents,

I'd like to measure voltage of a low impedance source (10mOhm),
which is in range of +/-200mV. The ADC cannot handle negative
voltages and I can't do the obvious trick with connecting one
of the input terminals to, say, VDD/2 and perform differential
measurement because the shunt's terminal must be connected to GND.
I don't want to go dual supply either, as it introduces more
problem than it solves. So the basic idea is to implement
a level shifter based on a PNP/PMOS current mirror.

Curiously, even at the Spice level the PNP variant using BC857B
simulates poorly, the current waveforms are in sync, but shifted by
a detectable offset (the collector current is in the 1mA ballpark).
The PMOS variant on BSS84 simulates extremely well. Suspiciously well.

But that's a simulation. What should I expect in practice
and how to do it properly? Are the real dual MOSFETs in
SOT343/SOT23-6 matched well enough?

	Best regards, Piotr

[toc] | [next] | [standalone]


#488489

Frompcdhobbs@gmail.com
Date2017-12-16 11:18 -0800
Message-ID<d4937f7c-6a7c-4c62-a7ca-9fa6175dce37@googlegroups.com>
In reply to#488479
>I'd like to measure voltage of a low impedance source (10mOhm), 
>which is in range of +/-200mV. The ADC cannot handle negative 
>voltages and I can't do the obvious trick with connecting one 
>of the input terminals to, say, VDD/2 and perform differential 
>measurement because the shunt's terminal must be connected to GND. 

Why not use a resistive divider to raise it up above ground?

Cheers

Phil Hobbs

[toc] | [prev] | [next] | [standalone]


#488495

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-16 20:37 +0100
Message-ID<p13sle$p4d$1@node1.news.atman.pl>
In reply to#488489
pcdhobbs@gmail.com wrote:

> Why not use a resistive divider to raise it up above ground?

Indeed, thanks to the low source impedance injecting some
current does not distort the measured value too much and such
a solution is perfectly acceptable for my purposes. Will use
an SMD resistor ladder due to the tempco reasons. Thanks, Phil!

So the main issue has been solved, but how about the
more general problem uncovered by the simulation? Is
BCV62 or compatible worth using, if even the perfectly
matched transistors Spice has plenty of produce rather
disappointing results? Perfectly matched MOSFETs exhibit
superior performance, but I don't believe the real ones
are even close.

	Best regards, Piotr


[toc] | [prev] | [next] | [standalone]


#488498

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2017-12-16 14:40 -0500
Message-ID<0rudnX9eLaEP66jHnZ2dnUU7-U2dnZ2d@supernews.com>
In reply to#488495
On 12/16/2017 02:37 PM, Piotr Wyderski wrote:
> pcdhobbs@gmail.com wrote:
> 
>> Why not use a resistive divider to raise it up above ground?
> 
> Indeed, thanks to the low source impedance injecting some
> current does not distort the measured value too much and such
> a solution is perfectly acceptable for my purposes. Will use
> an SMD resistor ladder due to the tempco reasons. Thanks, Phil!
> 
> So the main issue has been solved, but how about the
> more general problem uncovered by the simulation? Is
> BCV62 or compatible worth using, if even the perfectly
> matched transistors Spice has plenty of produce rather
> disappointing results? Perfectly matched MOSFETs exhibit
> superior performance, but I don't believe the real ones
> are even close.
> 
>      Best regards, Piotr
> 
> 
> 

BCV61 and 62 are both EOL, iirc.

The main issue is the poor thermal coupling between the two separate 
devices, but beta errors are also important.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

[toc] | [prev] | [next] | [standalone]


#488507

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-16 21:05 +0100
Message-ID<p13u9k$pgv$2@node2.news.atman.pl>
In reply to#488498
Phil Hobbs wrote:

> BCV61 and 62 are both EOL, iirc.

But still easily available. Will buy a hundred of each just in case.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#488494

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-12-16 11:36 -0800
Message-ID<hcsa3dtjd8orjtjfu9hauuqqgve74gh423@4ax.com>
In reply to#488479
On Sat, 16 Dec 2017 19:03:48 +0100, Piotr Wyderski
<peter.pan@neverland.mil> wrote:

>Gents,
>
>I'd like to measure voltage of a low impedance source (10mOhm),
>which is in range of +/-200mV. The ADC cannot handle negative
>voltages and I can't do the obvious trick with connecting one
>of the input terminals to, say, VDD/2 and perform differential
>measurement because the shunt's terminal must be connected to GND.
>I don't want to go dual supply either, as it introduces more
>problem than it solves. So the basic idea is to implement
>a level shifter based on a PNP/PMOS current mirror.
>
>Curiously, even at the Spice level the PNP variant using BC857B
>simulates poorly, the current waveforms are in sync, but shifted by
>a detectable offset (the collector current is in the 1mA ballpark).
>The PMOS variant on BSS84 simulates extremely well. Suspiciously well.
>
>But that's a simulation. What should I expect in practice
>and how to do it properly? Are the real dual MOSFETs in
>SOT343/SOT23-6 matched well enough?

Post the sim?

>
>	Best regards, Piotr

How about two rrio opamps, one inverting and one non-inverting?

Or a diffamp with around-zero common-mode compliance, and its output
reference at Vcc/2? There are parts like that, or you can make it.

A bandgap could do a simple level shift, up into the ADC's range.
Auto-zero it when the shunt current is known to be zero.

Or just shift the shunt voltage up with a couple of resistors.

Lots of modern delta-sigma ADCs would accept your differential shunt
signal directly.

Flying capacitors are always fun. A flying capacitor voltage
multiplier even more fun.

Ooh, how about chopping it, AC-coupled shifting up, and doing a
software lock-in?

Most dual transistors these days are just two chips in the same
package. Matching is mediocre, especially fets.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#488504

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-16 21:03 +0100
Message-ID<p13u60$pgv$1@node2.news.atman.pl>
In reply to#488494
John Larkin wrote:

> Post the sim?

Sure, below. Connect the one you wish and compare
the resistor currents.

> How about two rrio opamps, one inverting and one non-inverting?

Can they go slightly below GND?

> Lots of modern delta-sigma ADCs would accept your differential shunt
> signal directly.

Yes, that feature is definitively nice. I think it will also work
with the SAR ones if the differential input stage is designed properly.
The problem is that I want to detect anomalies in about a microsecond,
which makes the ADC data stream a kind of a torrent. And there will
be many of them. I could handle this tsunami, but I don't want to solve
the problems which aren't there. A hybrid detector composed of a slow
ADC for the mains quality inspection and a purely analog bag of window
comparators becomes increasingly appealing.

> Ooh, how about chopping it, AC-coupled shifting up, and doing a
> software lock-in?

BW must be around 1MHz, so chopping would be a bit complex,
sufficiently faithful reconstruction even more.

> Most dual transistors these days are just two chips in the same
> package. Matching is mediocre, especially fets.

What's their structure-to-structure withstand voltage? Can't find it easily.

	Best regards, Piotr


----------------8<---------------------

Version 4
SHEET 1 1228 680
WIRE 352 -1376 208 -1376
WIRE 576 -1376 352 -1376
WIRE 208 -1312 208 -1376
WIRE 352 -1312 352 -1376
WIRE 288 -1296 256 -1296
WIRE 304 -1296 288 -1296
WIRE 464 -1216 464 -1232
WIRE 464 -1216 352 -1216
WIRE 208 -1200 208 -1216
WIRE 288 -1200 288 -1296
WIRE 288 -1200 208 -1200
WIRE 352 -1200 352 -1216
WIRE 208 -1184 208 -1200
WIRE 208 -1104 -384 -1104
WIRE 352 -1104 352 -1120
WIRE 272 -1024 96 -1024
WIRE 352 -1024 272 -1024
WIRE 560 -1024 352 -1024
WIRE 576 -1024 576 -1376
WIRE 576 -1024 560 -1024
WIRE 800 -1024 576 -1024
WIRE 992 -1024 800 -1024
WIRE 800 -992 800 -1024
WIRE 992 -992 992 -1024
WIRE 352 -976 352 -1024
WIRE 560 -976 560 -1024
WIRE 896 -944 864 -944
WIRE 928 -944 896 -944
WIRE 944 -944 928 -944
WIRE 464 -928 416 -928
WIRE 496 -928 464 -928
WIRE 96 -880 96 -1024
WIRE 800 -880 800 -896
WIRE 896 -880 896 -944
WIRE 896 -880 800 -880
WIRE 992 -880 992 -896
WIRE 1104 -880 992 -880
WIRE 352 -864 352 -880
WIRE 432 -864 352 -864
WIRE 464 -864 464 -928
WIRE 560 -864 560 -880
WIRE 560 -864 464 -864
WIRE 352 -848 352 -864
WIRE 560 -832 560 -864
WIRE -16 -784 -368 -784
WIRE 96 -784 96 -800
WIRE 96 -784 64 -784
WIRE 176 -784 96 -784
WIRE 432 -784 432 -864
WIRE 496 -784 432 -784
WIRE 992 -784 992 -800
WIRE 768 -736 560 -736
WIRE 560 -720 560 -736
WIRE 272 -640 272 -1024
WIRE 560 -624 560 -640
WIRE 272 -544 272 -560
WIRE 352 -512 -320 -512
WIRE 352 -512 352 -768
WIRE -96 -416 -320 -416
WIRE 896 -416 896 -880
WIRE 896 -416 -16 -416
WIRE -560 -320 -560 -1312
WIRE 480 -320 -560 -320
WIRE 368 -208 272 -208
WIRE 512 -208 368 -208
WIRE 368 -176 368 -208
WIRE 272 -80 272 -208
WIRE 336 -80 272 -80
WIRE 336 -48 336 -80
WIRE 512 -48 512 -208
WIRE 256 0 176 0
WIRE 368 0 368 -96
WIRE 368 0 352 0
WIRE 384 0 368 0
WIRE 480 0 480 -320
WIRE 480 0 464 0
WIRE 496 0 480 0
WIRE 720 0 592 0
WIRE 720 32 720 0
WIRE 368 48 368 0
WIRE 176 96 176 0
WIRE 176 224 176 176
WIRE 720 224 720 112
WIRE 720 224 176 224
FLAG 368 48 0
FLAG 272 -544 0
FLAG 352 -1104 0
FLAG 560 -624 0
FLAG 992 -784 0
FLAG 768 -736 out_wilson
FLAG 1104 -880 out_plain
FLAG 464 -1232 out_mos
FLAG -384 -1104 in_mos
FLAG -368 -784 in_div
FLAG -320 -512 in_wilson
FLAG -320 -416 in_plain
SYMBOL voltage 176 80 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V1
SYMATTR Value SINE(0 325 50)
SYMBOL nmos 256 -48 M90
SYMATTR InstName M1
SYMATTR Value R6020PNJ
SYMBOL res 480 -16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R1
SYMATTR Value 10m
SYMBOL nmos 592 -48 R90
SYMATTR InstName M2
SYMATTR Value R6020PNJ
SYMBOL voltage 368 -192 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V2
SYMATTR Value 10
SYMBOL res 704 16 R0
SYMATTR InstName R2
SYMATTR Value 10
SYMBOL voltage 272 -656 R0
WINDOW 123 0 0 Left 2
WINDOW 39 0 0 Left 2
SYMATTR InstName V6
SYMATTR Value 6
SYMBOL pnp 416 -880 R180
SYMATTR InstName Q2
SYMATTR Value BC857B
SYMBOL res 336 -864 R0
SYMATTR InstName R8
SYMATTR Value 6k
SYMBOL pnp 496 -880 M180
SYMATTR InstName Q3
SYMATTR Value BC857B
SYMBOL pmos 256 -1216 R180
SYMATTR InstName M3
SYMATTR Value BSS84
SYMBOL pmos 304 -1216 M180
SYMATTR InstName M4
SYMATTR Value BSS84
SYMBOL res 192 -1200 R0
SYMATTR InstName R10
SYMATTR Value 6k
SYMBOL res 336 -1216 R0
SYMATTR InstName R11
SYMATTR Value 2k
SYMBOL pnp 496 -736 M180
SYMATTR InstName Q4
SYMATTR Value BC857B
SYMBOL res 544 -736 R0
SYMATTR InstName R9
SYMATTR Value 1k
SYMBOL res 80 -896 R0
SYMATTR InstName R12
SYMATTR Value 6k
SYMBOL res 80 -800 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R14
SYMATTR Value 6k
SYMBOL pnp 864 -896 R180
SYMATTR InstName Q1
SYMATTR Value BC857B
SYMBOL pnp 928 -896 M180
SYMATTR InstName Q5
SYMATTR Value BC857B
SYMBOL res 976 -896 R0
SYMATTR InstName R13
SYMATTR Value 1k
SYMBOL res 0 -432 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R3
SYMATTR Value 6k
TEXT 144 232 Left 2 !.tran 2e-2

[toc] | [prev] | [next] | [standalone]


#488509

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-12-16 12:19 -0800
Message-ID<gnva3dhjnp30fb14r4uindesk070jkm1kl@4ax.com>
In reply to#488504
On Sat, 16 Dec 2017 21:03:02 +0100, Piotr Wyderski
<peter.pan@neverland.mil> wrote:

>John Larkin wrote:
>
>> Post the sim?
>
>Sure, below. Connect the one you wish and compare
>the resistor currents.
>
>> How about two rrio opamps, one inverting and one non-inverting?
>
>Can they go slightly below GND?

Most have p-fet or PNP front-ends and some can can go a few hundred mV
below ground. Chopamps usually go below ground too.


>
>> Lots of modern delta-sigma ADCs would accept your differential shunt
>> signal directly.
>
>Yes, that feature is definitively nice. I think it will also work
>with the SAR ones if the differential input stage is designed properly.
>The problem is that I want to detect anomalies in about a microsecond,
>which makes the ADC data stream a kind of a torrent. And there will
>be many of them. I could handle this tsunami, but I don't want to solve
>the problems which aren't there. A hybrid detector composed of a slow
>ADC for the mains quality inspection and a purely analog bag of window
>comparators becomes increasingly appealing.
>
>> Ooh, how about chopping it, AC-coupled shifting up, and doing a
>> software lock-in?
>
>BW must be around 1MHz, so chopping would be a bit complex,
>sufficiently faithful reconstruction even more.
>
>> Most dual transistors these days are just two chips in the same
>> package. Matching is mediocre, especially fets.
>
>What's their structure-to-structure withstand voltage? Can't find it easily.
>
>	Best regards, Piotr
>
>
>----------------8<---------------------
>
>Version 4
>SHEET 1 1228 680
>WIRE 352 -1376 208 -1376
>WIRE 576 -1376 352 -1376
>WIRE 208 -1312 208 -1376
>WIRE 352 -1312 352 -1376
>WIRE 288 -1296 256 -1296
>WIRE 304 -1296 288 -1296
>WIRE 464 -1216 464 -1232
>WIRE 464 -1216 352 -1216
>WIRE 208 -1200 208 -1216
>WIRE 288 -1200 288 -1296
>WIRE 288 -1200 208 -1200
>WIRE 352 -1200 352 -1216
>WIRE 208 -1184 208 -1200
>WIRE 208 -1104 -384 -1104
>WIRE 352 -1104 352 -1120
>WIRE 272 -1024 96 -1024
>WIRE 352 -1024 272 -1024
>WIRE 560 -1024 352 -1024
>WIRE 576 -1024 576 -1376
>WIRE 576 -1024 560 -1024
>WIRE 800 -1024 576 -1024
>WIRE 992 -1024 800 -1024
>WIRE 800 -992 800 -1024
>WIRE 992 -992 992 -1024
>WIRE 352 -976 352 -1024
>WIRE 560 -976 560 -1024
>WIRE 896 -944 864 -944
>WIRE 928 -944 896 -944
>WIRE 944 -944 928 -944
>WIRE 464 -928 416 -928
>WIRE 496 -928 464 -928
>WIRE 96 -880 96 -1024
>WIRE 800 -880 800 -896
>WIRE 896 -880 896 -944
>WIRE 896 -880 800 -880
>WIRE 992 -880 992 -896
>WIRE 1104 -880 992 -880
>WIRE 352 -864 352 -880
>WIRE 432 -864 352 -864
>WIRE 464 -864 464 -928
>WIRE 560 -864 560 -880
>WIRE 560 -864 464 -864
>WIRE 352 -848 352 -864
>WIRE 560 -832 560 -864
>WIRE -16 -784 -368 -784
>WIRE 96 -784 96 -800
>WIRE 96 -784 64 -784
>WIRE 176 -784 96 -784
>WIRE 432 -784 432 -864
>WIRE 496 -784 432 -784
>WIRE 992 -784 992 -800
>WIRE 768 -736 560 -736
>WIRE 560 -720 560 -736
>WIRE 272 -640 272 -1024
>WIRE 560 -624 560 -640
>WIRE 272 -544 272 -560
>WIRE 352 -512 -320 -512
>WIRE 352 -512 352 -768
>WIRE -96 -416 -320 -416
>WIRE 896 -416 896 -880
>WIRE 896 -416 -16 -416
>WIRE -560 -320 -560 -1312
>WIRE 480 -320 -560 -320
>WIRE 368 -208 272 -208
>WIRE 512 -208 368 -208
>WIRE 368 -176 368 -208
>WIRE 272 -80 272 -208
>WIRE 336 -80 272 -80
>WIRE 336 -48 336 -80
>WIRE 512 -48 512 -208
>WIRE 256 0 176 0
>WIRE 368 0 368 -96
>WIRE 368 0 352 0
>WIRE 384 0 368 0
>WIRE 480 0 480 -320
>WIRE 480 0 464 0
>WIRE 496 0 480 0
>WIRE 720 0 592 0
>WIRE 720 32 720 0
>WIRE 368 48 368 0
>WIRE 176 96 176 0
>WIRE 176 224 176 176
>WIRE 720 224 720 112
>WIRE 720 224 176 224
>FLAG 368 48 0
>FLAG 272 -544 0
>FLAG 352 -1104 0
>FLAG 560 -624 0
>FLAG 992 -784 0
>FLAG 768 -736 out_wilson
>FLAG 1104 -880 out_plain
>FLAG 464 -1232 out_mos
>FLAG -384 -1104 in_mos
>FLAG -368 -784 in_div
>FLAG -320 -512 in_wilson
>FLAG -320 -416 in_plain
>SYMBOL voltage 176 80 R0
>WINDOW 123 0 0 Left 2
>WINDOW 39 0 0 Left 2
>SYMATTR InstName V1
>SYMATTR Value SINE(0 325 50)
>SYMBOL nmos 256 -48 M90
>SYMATTR InstName M1
>SYMATTR Value R6020PNJ
>SYMBOL res 480 -16 R90
>WINDOW 0 0 56 VBottom 2
>WINDOW 3 32 56 VTop 2
>SYMATTR InstName R1
>SYMATTR Value 10m
>SYMBOL nmos 592 -48 R90
>SYMATTR InstName M2
>SYMATTR Value R6020PNJ
>SYMBOL voltage 368 -192 R0
>WINDOW 123 0 0 Left 2
>WINDOW 39 0 0 Left 2
>SYMATTR InstName V2
>SYMATTR Value 10
>SYMBOL res 704 16 R0
>SYMATTR InstName R2
>SYMATTR Value 10
>SYMBOL voltage 272 -656 R0
>WINDOW 123 0 0 Left 2
>WINDOW 39 0 0 Left 2
>SYMATTR InstName V6
>SYMATTR Value 6
>SYMBOL pnp 416 -880 R180
>SYMATTR InstName Q2
>SYMATTR Value BC857B
>SYMBOL res 336 -864 R0
>SYMATTR InstName R8
>SYMATTR Value 6k
>SYMBOL pnp 496 -880 M180
>SYMATTR InstName Q3
>SYMATTR Value BC857B
>SYMBOL pmos 256 -1216 R180
>SYMATTR InstName M3
>SYMATTR Value BSS84
>SYMBOL pmos 304 -1216 M180
>SYMATTR InstName M4
>SYMATTR Value BSS84
>SYMBOL res 192 -1200 R0
>SYMATTR InstName R10
>SYMATTR Value 6k
>SYMBOL res 336 -1216 R0
>SYMATTR InstName R11
>SYMATTR Value 2k
>SYMBOL pnp 496 -736 M180
>SYMATTR InstName Q4
>SYMATTR Value BC857B
>SYMBOL res 544 -736 R0
>SYMATTR InstName R9
>SYMATTR Value 1k
>SYMBOL res 80 -896 R0
>SYMATTR InstName R12
>SYMATTR Value 6k
>SYMBOL res 80 -800 R90
>WINDOW 0 0 56 VBottom 2
>WINDOW 3 32 56 VTop 2
>SYMATTR InstName R14
>SYMATTR Value 6k
>SYMBOL pnp 864 -896 R180
>SYMATTR InstName Q1
>SYMATTR Value BC857B
>SYMBOL pnp 928 -896 M180
>SYMATTR InstName Q5
>SYMATTR Value BC857B
>SYMBOL res 976 -896 R0
>SYMATTR InstName R13
>SYMATTR Value 1k
>SYMBOL res 0 -432 R90
>WINDOW 0 0 56 VBottom 2
>WINDOW 3 32 56 VTop 2
>SYMATTR InstName R3
>SYMATTR Value 6k
>TEXT 144 232 Left 2 !.tran 2e-2

-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#488502

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2017-12-16 11:54 -0800
Message-ID<8fua3dhqdfsn16kq87inin529rcnldo0na@4ax.com>
In reply to#488479
On Sat, 16 Dec 2017 19:03:48 +0100, Piotr Wyderski
<peter.pan@neverland.mil> wrote:

>Gents,
>
>I'd like to measure voltage of a low impedance source (10mOhm),
>which is in range of +/-200mV. The ADC cannot handle negative
>voltages and I can't do the obvious trick with connecting one
>of the input terminals to, say, VDD/2 and perform differential
>measurement because the shunt's terminal must be connected to GND.
>I don't want to go dual supply either, as it introduces more
>problem than it solves. So the basic idea is to implement
>a level shifter based on a PNP/PMOS current mirror.
>
>Curiously, even at the Spice level the PNP variant using BC857B
>simulates poorly, the current waveforms are in sync, but shifted by
>a detectable offset (the collector current is in the 1mA ballpark).
>The PMOS variant on BSS84 simulates extremely well. Suspiciously well.
>
>But that's a simulation. What should I expect in practice
>and how to do it properly? Are the real dual MOSFETs in
>SOT343/SOT23-6 matched well enough?

Post the sim?

>
>	Best regards, Piotr

How about two rrio opamps, one inverting and one non-inverting?

Or a diffamp with around-zero common-mode compliance, and its output
reference at Vcc/2? There are parts like that, or you can make it.

A bandgap could do a simple level shift, up into the ADC's range.
Auto-zero it when the shunt current is known to be zero.

Or just shift the shunt voltage up with a couple of resistors.

Lots of modern delta-sigma ADCs would accept your differential shunt
signal directly.

Flying capacitors are always fun. A flying capacitor voltage
multiplier even more fun.

Ooh, how about chopping it, AC-coupled shifting up, and doing a
software lock-in?

Most dual transistors these days are just two chips in the same
package. Matching is mediocre, especially fets.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#488503

FromSteve Wilson <no@spam.com>
Date2017-12-16 19:56 +0000
Message-ID<XnsA84D97FAB39ADidtokenpost@69.16.179.22>
In reply to#488479
Piotr Wyderski <peter.pan@neverland.mil> wrote:

> Gents,
 
> I'd like to measure voltage of a low impedance source (10mOhm),
> which is in range of +/-200mV. The ADC cannot handle negative
> voltages and I can't do the obvious trick with connecting one
> of the input terminals to, say, VDD/2 and perform differential
> measurement because the shunt's terminal must be connected to GND.
> I don't want to go dual supply either, as it introduces more
> problem than it solves. So the basic idea is to implement
> a level shifter based on a PNP/PMOS current mirror.
 
> Curiously, even at the Spice level the PNP variant using BC857B
> simulates poorly, the current waveforms are in sync, but shifted by
> a detectable offset (the collector current is in the 1mA ballpark).
> The PMOS variant on BSS84 simulates extremely well. Suspiciously well.
 
> But that's a simulation. What should I expect in practice
> and how to do it properly? Are the real dual MOSFETs in
> SOT343/SOT23-6 matched well enough?
 
>      Best regards, Piotr
 
I don't understand the problem. Why mess with discretes?

A simple op amp inverter will convert a negative signal below ground to a 
positive above ground. You can use a LM358 which has a common-mode range 
that includes ground.

[toc] | [prev] | [next] | [standalone]


#488508

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-16 21:11 +0100
Message-ID<p13um7$r1a$1@node1.news.atman.pl>
In reply to#488503
Steve Wilson wrote:

> I don't understand the problem. Why mess with discretes?

Because they are much less picky on the power supply issues.
A transistor doesn't have insanely low VDD_MAX, just a bundle
of breakdown voltages and there is a huge collection of them.

> A simple op amp inverter will convert a negative signal below ground to a
> positive above ground.

It is simple if you can afford a dual isolated supply, otherwise
things are getting interesting.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


#488513

FromSteve Wilson <no@spam.com>
Date2017-12-16 21:18 +0000
Message-ID<XnsA84DA5ED45307idtokenpost@69.16.179.23>
In reply to#488508
Piotr Wyderski <peter.pan@neverland.mil> wrote:

> Steve Wilson wrote:
 
>> I don't understand the problem. Why mess with discretes?

> Because they are much less picky on the power supply issues.
> A transistor doesn't have insanely low VDD_MAX, just a bundle
> of breakdown voltages and there is a huge collection of them.
 
>> A simple op amp inverter will convert a negative signal below ground to
>> a positive above ground. 
 
> It is simple if you can afford a dual isolated supply, otherwise
> things are getting interesting.

You don't need a dual supply with the LM358. It accepts a wide range of
supply voltages and the common mode range includes ground. 

Ground the positive input terminal. Connect a 1k from the negative input
to your -200mv source. Connect another 1k from the negative input to the
op amp output. 

Voila. You have an inverter with a gain of one.

Any other op amp with a common mode range that includes ground will work.

The LM358 has a gain/bandwidth product of areound 500KHz for moderate
supply voltages. If you need more bandwidth, choose another op amp. There
are many, but the price goes up with the bandwidth. 
 
>      Best regards, Piotr
 

[toc] | [prev] | [next] | [standalone]


#488511

Fromwhit3rd <whit3rd@gmail.com>
Date2017-12-16 12:57 -0800
Message-ID<2be25db3-a552-450e-86df-e02f9e8b6125@googlegroups.com>
In reply to#488479
On Saturday, December 16, 2017 at 10:04:01 AM UTC-8, Piotr Wyderski wrote:
> ...the basic idea is to implement
> a level shifter based on a PNP/PMOS current mirror.
> 
> Curiously, even at the Spice level the PNP variant using BC857B
> simulates poorly

LM13700 (transconductance amplifier) is a fairly good dual current  mirror,
and you can choose source or sink polarity by a pullup resistor on one of
the differential input pins (grounding the other, and the 'linearizing' diodes).

MOS mirrors have a noise advantage, but lower transconductance than bipolar.
If a MOS mirror is to be made 'ideal', it must be cascode-output style.

[toc] | [prev] | [next] | [standalone]


#488514

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-12-16 16:35 -0500
Message-ID<RkgZB.1643$bJ2.573@fx07.iad>
In reply to#488479
On 12/16/2017 01:03 PM, Piotr Wyderski wrote:
> Gents,
> 
> I'd like to measure voltage of a low impedance source (10mOhm),
> which is in range of +/-200mV. The ADC cannot handle negative
> voltages and I can't do the obvious trick with connecting one
> of the input terminals to, say, VDD/2 and perform differential
> measurement because the shunt's terminal must be connected to GND.
> I don't want to go dual supply either, as it introduces more
> problem than it solves. So the basic idea is to implement
> a level shifter based on a PNP/PMOS current mirror.
> 
> Curiously, even at the Spice level the PNP variant using BC857B
> simulates poorly, the current waveforms are in sync, but shifted by
> a detectable offset (the collector current is in the 1mA ballpark).
> The PMOS variant on BSS84 simulates extremely well. Suspiciously well.
> 
> But that's a simulation. What should I expect in practice
> and how to do it properly? Are the real dual MOSFETs in
> SOT343/SOT23-6 matched well enough?
> 
>      Best regards, Piotr
> 

Someone makes a chip that does exactly what you describe; it's a 
level-shifter for high-side current sensing that internally is a made up 
of a BJT current mirror and sources. I'm blanking on the manufacturer, I 
want to say TI but not sure. Having trouble finding it on Mouser after 
5-10 min of looking but I know it's here somewhere...

[toc] | [prev] | [next] | [standalone]


#488516

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-12-16 16:52 -0500
Message-ID<9AgZB.1350$BH4.835@fx02.iad>
In reply to#488514
On 12/16/2017 04:35 PM, bitrex wrote:
> On 12/16/2017 01:03 PM, Piotr Wyderski wrote:
>> Gents,
>>
>> I'd like to measure voltage of a low impedance source (10mOhm),
>> which is in range of +/-200mV. The ADC cannot handle negative
>> voltages and I can't do the obvious trick with connecting one
>> of the input terminals to, say, VDD/2 and perform differential
>> measurement because the shunt's terminal must be connected to GND.
>> I don't want to go dual supply either, as it introduces more
>> problem than it solves. So the basic idea is to implement
>> a level shifter based on a PNP/PMOS current mirror.
>>
>> Curiously, even at the Spice level the PNP variant using BC857B
>> simulates poorly, the current waveforms are in sync, but shifted by
>> a detectable offset (the collector current is in the 1mA ballpark).
>> The PMOS variant on BSS84 simulates extremely well. Suspiciously well.
>>
>> But that's a simulation. What should I expect in practice
>> and how to do it properly? Are the real dual MOSFETs in
>> SOT343/SOT23-6 matched well enough?
>>
>>      Best regards, Piotr
>>
> 
> Someone makes a chip that does exactly what you describe; it's a 
> level-shifter for high-side current sensing that internally is a made up 
> of a BJT current mirror and sources. I'm blanking on the manufacturer, I 
> want to say TI but not sure. Having trouble finding it on Mouser after 
> 5-10 min of looking but I know it's here somewhere...

Ah, it's Diodes Inc. Discontinued at Digi-Key but still have some 
available, doesn't seem to be discontinued by the manufacturer tho:

<https://www.digikey.com/product-detail/en/diodes-incorporated/ZDS1009TA/1034-ZDS1009CT-ND/5684495>

[toc] | [prev] | [next] | [standalone]


#488553

FromGeorge Herold <gherold@teachspin.com>
Date2017-12-16 19:18 -0800
Message-ID<8fb2c018-a8b7-4493-813b-fe23f5b3b5c6@googlegroups.com>
In reply to#488516
On Saturday, December 16, 2017 at 4:52:09 PM UTC-5, bitrex wrote:
> On 12/16/2017 04:35 PM, bitrex wrote:
> > On 12/16/2017 01:03 PM, Piotr Wyderski wrote:
> >> Gents,
> >>
> >> I'd like to measure voltage of a low impedance source (10mOhm),
> >> which is in range of +/-200mV. The ADC cannot handle negative
> >> voltages and I can't do the obvious trick with connecting one
> >> of the input terminals to, say, VDD/2 and perform differential
> >> measurement because the shunt's terminal must be connected to GND.
> >> I don't want to go dual supply either, as it introduces more
> >> problem than it solves. So the basic idea is to implement
> >> a level shifter based on a PNP/PMOS current mirror.
> >>
> >> Curiously, even at the Spice level the PNP variant using BC857B
> >> simulates poorly, the current waveforms are in sync, but shifted by
> >> a detectable offset (the collector current is in the 1mA ballpark).
> >> The PMOS variant on BSS84 simulates extremely well. Suspiciously well.
> >>
> >> But that's a simulation. What should I expect in practice
> >> and how to do it properly? Are the real dual MOSFETs in
> >> SOT343/SOT23-6 matched well enough?
> >>
> >>      Best regards, Piotr
> >>
> > 
> > Someone makes a chip that does exactly what you describe; it's a 
> > level-shifter for high-side current sensing that internally is a made up 
> > of a BJT current mirror and sources. I'm blanking on the manufacturer, I 
> > want to say TI but not sure. Having trouble finding it on Mouser after 
> > 5-10 min of looking but I know it's here somewhere...
> 
> Ah, it's Diodes Inc. Discontinued at Digi-Key but still have some 
> available, doesn't seem to be discontinued by the manufacturer tho:
> 
> <https://www.digikey.com/product-detail/en/diodes-incorporated/ZDS1009TA/1034-ZDS1009CT-ND/5684495>

I was going to ask, why are you wasting time searching on Mouser? :^)

George H.

[toc] | [prev] | [next] | [standalone]


#488564

Frombitrex <bitrex@de.lete.earthlink.net>
Date2017-12-17 01:37 -0500
Message-ID<sgoZB.2080$oE2.93@fx33.iad>
In reply to#488553
On 12/16/2017 10:18 PM, George Herold wrote:
> On Saturday, December 16, 2017 at 4:52:09 PM UTC-5, bitrex wrote:
>> On 12/16/2017 04:35 PM, bitrex wrote:
>>> On 12/16/2017 01:03 PM, Piotr Wyderski wrote:
>>>> Gents,
>>>>
>>>> I'd like to measure voltage of a low impedance source (10mOhm),
>>>> which is in range of +/-200mV. The ADC cannot handle negative
>>>> voltages and I can't do the obvious trick with connecting one
>>>> of the input terminals to, say, VDD/2 and perform differential
>>>> measurement because the shunt's terminal must be connected to GND.
>>>> I don't want to go dual supply either, as it introduces more
>>>> problem than it solves. So the basic idea is to implement
>>>> a level shifter based on a PNP/PMOS current mirror.
>>>>
>>>> Curiously, even at the Spice level the PNP variant using BC857B
>>>> simulates poorly, the current waveforms are in sync, but shifted by
>>>> a detectable offset (the collector current is in the 1mA ballpark).
>>>> The PMOS variant on BSS84 simulates extremely well. Suspiciously well.
>>>>
>>>> But that's a simulation. What should I expect in practice
>>>> and how to do it properly? Are the real dual MOSFETs in
>>>> SOT343/SOT23-6 matched well enough?
>>>>
>>>>       Best regards, Piotr
>>>>
>>>
>>> Someone makes a chip that does exactly what you describe; it's a
>>> level-shifter for high-side current sensing that internally is a made up
>>> of a BJT current mirror and sources. I'm blanking on the manufacturer, I
>>> want to say TI but not sure. Having trouble finding it on Mouser after
>>> 5-10 min of looking but I know it's here somewhere...
>>
>> Ah, it's Diodes Inc. Discontinued at Digi-Key but still have some
>> available, doesn't seem to be discontinued by the manufacturer tho:
>>
>> <https://www.digikey.com/product-detail/en/diodes-incorporated/ZDS1009TA/1034-ZDS1009CT-ND/5684495>
> 
> I was going to ask, why are you wasting time searching on Mouser? :^)
> 
> George H.
> 

One reason is that Mouser's search engine is great and Digi-Key's is a 
hot mess

[toc] | [prev] | [next] | [standalone]


#488569

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2017-12-17 02:39 -0600
Message-ID<p15agd$8ge$1@dont-email.me>
In reply to#488564
"bitrex" <bitrex@de.lete.earthlink.net> wrote in message 
news:sgoZB.2080$oE2.93@fx33.iad...
> One reason is that Mouser's search engine is great and Digi-Key's is a hot 
> mess

Duh?

I've never seen a category where Mouser's was more accurate and organized.

There are plenty of categories where both fall flat.  Connectors, mechanical 
anything, you name it.  But among the usual sorts of things like 
semiconductors?

On a related subject, can we all get some hate for Allied's system?  Yeah. 
I haven't bought a damn thing from them in years...

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Contract Design
Website: https://www.seventransistorlabs.com/ 

[toc] | [prev] | [next] | [standalone]


#488646

Fromkrw@notreal.com
Date2017-12-17 18:43 -0500
Message-ID<u70e3d1jf5atf5r98jollrm8jkbi7gtved@4ax.com>
In reply to#488564
On Sun, 17 Dec 2017 01:37:11 -0500, bitrex
<bitrex@de.lete.earthlink.net> wrote:

>On 12/16/2017 10:18 PM, George Herold wrote:
>> On Saturday, December 16, 2017 at 4:52:09 PM UTC-5, bitrex wrote:
>>> On 12/16/2017 04:35 PM, bitrex wrote:
>>>> On 12/16/2017 01:03 PM, Piotr Wyderski wrote:
>>>>> Gents,
>>>>>
>>>>> I'd like to measure voltage of a low impedance source (10mOhm),
>>>>> which is in range of +/-200mV. The ADC cannot handle negative
>>>>> voltages and I can't do the obvious trick with connecting one
>>>>> of the input terminals to, say, VDD/2 and perform differential
>>>>> measurement because the shunt's terminal must be connected to GND.
>>>>> I don't want to go dual supply either, as it introduces more
>>>>> problem than it solves. So the basic idea is to implement
>>>>> a level shifter based on a PNP/PMOS current mirror.
>>>>>
>>>>> Curiously, even at the Spice level the PNP variant using BC857B
>>>>> simulates poorly, the current waveforms are in sync, but shifted by
>>>>> a detectable offset (the collector current is in the 1mA ballpark).
>>>>> The PMOS variant on BSS84 simulates extremely well. Suspiciously well.
>>>>>
>>>>> But that's a simulation. What should I expect in practice
>>>>> and how to do it properly? Are the real dual MOSFETs in
>>>>> SOT343/SOT23-6 matched well enough?
>>>>>
>>>>>       Best regards, Piotr
>>>>>
>>>>
>>>> Someone makes a chip that does exactly what you describe; it's a
>>>> level-shifter for high-side current sensing that internally is a made up
>>>> of a BJT current mirror and sources. I'm blanking on the manufacturer, I
>>>> want to say TI but not sure. Having trouble finding it on Mouser after
>>>> 5-10 min of looking but I know it's here somewhere...
>>>
>>> Ah, it's Diodes Inc. Discontinued at Digi-Key but still have some
>>> available, doesn't seem to be discontinued by the manufacturer tho:
>>>
>>> <https://www.digikey.com/product-detail/en/diodes-incorporated/ZDS1009TA/1034-ZDS1009CT-ND/5684495>
>> 
>> I was going to ask, why are you wasting time searching on Mouser? :^)
>> 
>> George H.
>> 
>
>One reason is that Mouser's search engine is great and Digi-Key's is a 
>hot mess

You're cracked.

[toc] | [prev] | [next] | [standalone]


#488567

FromPiotr Wyderski <peter.pan@neverland.mil>
Date2017-12-17 09:02 +0100
Message-ID<p158am$15a$1@node2.news.atman.pl>
In reply to#488553
George Herold wrote:

> I was going to ask, why are you wasting time searching on Mouser? :^)

There are many far worse search engines. Some actually don't
even know that 500mA is less than 1A, because 500 is obviously
greater than 1, so the search results are often amazing.

	Best regards, Piotr

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | sci.electronics.design


csiph-web