Author Topic: Current mirror question: hybrid mirror (PNP/NPN)?  (Read 3739 times)

0 Members and 2 Guests are viewing this topic.

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Current mirror question: hybrid mirror (PNP/NPN)?
« on: October 29, 2024, 06:03:09 am »
Probly over my head here, but here goes:

Let's say a guy would want a current mirror that would reflect one current used as a source onto another current used as a sink: would this work?



I ask this somewhat naively; my guess would be that the Vbe levels might be off because of the reverse polarity of the Qs, but I really have no idea. Again, the idea is that the transistor on the left (PNP) would source current to something, while its partner on the right (NPN) would sink the identical current.
 

Online moffy

  • Super Contributor
  • ***
  • Posts: 2177
  • Country: au
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #1 on: October 29, 2024, 06:13:02 am »
You have effectively two diodes in series with a power supply across them, not good.
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #2 on: October 29, 2024, 07:10:00 am »
Yikes. OK, scratch that idea.
So how would a guy accomplish this?
 

Offline Someone

  • Super Contributor
  • ***
  • Posts: 5119
  • Country: au
    • send complaints here
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #3 on: October 29, 2024, 10:51:54 am »
So how would a guy accomplish this?
Put the current source and current sink in series.....
 

Offline Manul

  • Super Contributor
  • ***
  • Posts: 1256
  • Country: lt
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #4 on: October 29, 2024, 10:53:58 am »
So how would a guy accomplish this?

Why not use two current mirrors, one NPN and one PNP? One of them can set the current for another one. So it will translate current sink into current source or vice versa.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 21092
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #5 on: October 29, 2024, 11:56:28 am »
Let's say a guy would want a current mirror that would reflect one current used as a source onto another current used as a sink: would this work?

This kind of question can be quickly answered by a Spice simulation. Draw your schematic, select components from library, select type of simulation, run simulation.

Key points about any simulations: results depend on quality of schematic and component models, single numerical answers rather than general analytical results.

There are many versions of Spice available, including LTSpice, MicroCap, QSpice, TINA.

« Last Edit: October 29, 2024, 11:58:44 am by tggzzz »
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7394
  • Country: pl
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #6 on: October 29, 2024, 12:52:48 pm »
SPCIE will have no problem with this circuit...
The only question is whether it will be kA or MA flowing through those transistors. Any bets? ;D
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8881
  • Country: us
  • Retired, now restoring antique test equipment
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #7 on: October 29, 2024, 04:06:28 pm »
When sketching a simple circuit idea such as this, start by adding the expected voltages at each node and currents through each branch, with simplified assumptions such as Vbe = 0.7 V and beta = 100.
If it seems reasonable, then try Spice to get a better answer.
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8881
  • Country: us
  • Retired, now restoring antique test equipment
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #8 on: October 29, 2024, 04:22:37 pm »
So how would a guy accomplish this?

Why not use two current mirrors, one NPN and one PNP? One of them can set the current for another one. So it will translate current sink into current source or vice versa.

This is a practical approach:  note that the direction of current flow in a NPN/NPN or PNP/PNP current mirror.
« Last Edit: October 29, 2024, 04:56:50 pm by TimFox »
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #9 on: October 30, 2024, 04:07:41 am »
Turns out the problem I'm dealing with here is a topological one, meaning the problem of how to tie in a current mirror to a certain connection point in a circuit.

So: here are the two forms of the classic current mirror using 2 BJTs:



The first one, the PNP mirror, sources current to circuitry below the mirror; the other one (NPN) sinks current from above.

My problem: I need to source the Iset current to a component, but then have the Imirror current sunk from another part of the circuit (hence my "hybrid" in the topic).

According to one suggestion here I could couple two current mirrors together, one as source, the other as sink. I'm thinking (but aren't sure) that this arrangement would do that:



(I'm assuming that the current of the 2nd mirror would be set by the current sourced by the first one, so no set resistor would be required.)

Now all these schemes so far are using the current mirror as a 3-terminal device, with either a common V+ (PNP/source) or ground (NPN/sink) terminal.



But what if we could construct a current mirror as a 4-terminal device, so that one side could be used as a source and the other as a sink (or vice versa):



Is this possible?
I don't really like the 2 cascaded mirror plan, as it would seem to introduce even more error into the equation. But if this is the only way to accomplish this, then I guess so be it.

One thing: discretes only. No ICs!
« Last Edit: October 30, 2024, 04:10:20 am by Analog Kid »
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 21092
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #10 on: October 30, 2024, 10:02:29 am »
You need ICs, since you need closely matched devices.

You can also use MOSFETs, e.g. see the applications in https://aldinc.com/pdf/ALD1106.pdf

Advanced Linear Devices have some interesting devices http://www.aldinc.com/ald_mosfetarrays.php

You mention "I don't really like the 2 cascaded mirror plan, as it would seem to introduce even more error into the equation.", but don't quantify the allowable errors. It might be relevant for you to specify the currents, voltages, and required tolerance.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #11 on: October 30, 2024, 10:31:49 am »
First things first. I'm trying to get an answer to the topological question here, namely the "4-terminal" idea. If you have anything to say about that it would be appreciated.

Accuracy is a few items down the list here.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 21092
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #12 on: October 30, 2024, 10:36:02 am »
First things first. I'm trying to get an answer to the topological question here, namely the "4-terminal" idea. If you have anything to say about that it would be appreciated.

Accuracy is a few items down the list here.

You mentioned accuracy.

Try simulating your circuit with a Spice. You will quickly get some answers to your questions, and will learn a lot.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #13 on: October 30, 2024, 10:47:02 am »
[Try simulating your circuit with a Spice. You will quickly get some answers to your questions, and will learn a lot.

I'd try simulating it (with LTSpice, which I've used), but I can't simulate what I have no idea how to construct, hence my questions here, hoping those who know a lot more than I do might be helpful. I thought that was the idea of forums like this one. Maybe I'm wrong about that.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 21092
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #14 on: October 30, 2024, 11:12:59 am »
[Try simulating your circuit with a Spice. You will quickly get some answers to your questions, and will learn a lot.

I'd try simulating it (with LTSpice, which I've used), but I can't simulate what I have no idea how to construct, hence my questions here, hoping those who know a lot more than I do might be helpful. I thought that was the idea of forums like this one. Maybe I'm wrong about that.

You have schematics that can be entered into a Spice and simulated.

You can even use ideal components: Spice has voltage-controlled-current-sources and current-controlled-current-source components as used in some of the pictures you supply.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #15 on: October 30, 2024, 11:27:06 am »
You have schematics that can be entered into a Spice and simulated.

Not for my notional 4-terminal device I don't. Or haven't you been reading what I wrote?

Sheesh.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 21092
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #16 on: October 30, 2024, 11:32:57 am »
You have schematics that can be entered into a Spice and simulated.

Not for my notional 4-terminal device I don't. Or haven't you been reading what I wrote?

Sheesh.

Spice contains all the components for this picture of yours:


There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline magic

  • Super Contributor
  • ***
  • Posts: 7394
  • Country: pl
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #17 on: October 30, 2024, 05:35:49 pm »
Somebody already gave you the solution: connect the reference current sink in series between the load and ground.

And if you can't do that because the sum of voltage drops across the generator and the load exceeds your supply voltage, then how on earth could any floating transistor circuit work between them?
 

Online Alex Nikitin

  • Super Contributor
  • ***
  • Posts: 1325
  • Country: gb
  • Femtoampnut and Tapehead.
    • A.N.T. Audio
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #18 on: October 30, 2024, 06:45:50 pm »
Like that? Only as an illustration of a topology  ;) . R2 can be replaced by an active device to control both currents at the same time.

Cheers

Alex
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #19 on: October 30, 2024, 11:44:36 pm »
You have schematics that can be entered into a Spice and simulated.

Not for my notional 4-terminal device I don't. Or haven't you been reading what I wrote?

Sheesh.

Spice contains all the components for this picture of yours:



No, it doesn't: what about the link between the two sides, whatever components are needed to make the right-side current track the left side?

Look: if you're really trying to help here, then why don't you just give me a circuit--you know, with components, a schematic, doesn't matter if it's drawn on a napkin--that will perform this function, as I'm sure you're capable of, OK? Otherwise, maybe just keep silent and let others help here.
« Last Edit: October 30, 2024, 11:46:28 pm by Analog Kid »
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 21092
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #20 on: October 30, 2024, 11:53:08 pm »
You have schematics that can be entered into a Spice and simulated.

Not for my notional 4-terminal device I don't. Or haven't you been reading what I wrote?

Sheesh.

Spice contains all the components for this picture of yours:



No, it doesn't: what about the link between the two sides, whatever components are needed to make the right-side current track the left side?

It is your circuit; you tell us!

It sounds like you are thinking of "current controlled current sources", in which case see https://www.eecg.utoronto.ca/~kphang/teaching/spice/part2.html#6.8
« Last Edit: October 31, 2024, 09:05:11 pm by tggzzz »
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #21 on: October 31, 2024, 12:07:49 am »
Yes, I think it's fair to say I'm looking for just that, a current-controlled current source.

Any chance I can get a schematic rather than a bunch of Spice parameters? That would be much more useful to me at this point.
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 21092
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #22 on: October 31, 2024, 12:19:10 am »
Yes, I think it's fair to say I'm looking for just that, a current-controlled current source.

Any chance I can get a schematic rather than a bunch of Spice parameters? That would be much more useful to me at this point.

Spice source code is an ASCII netlist, originally on punched cards. Draw a Spice schematic. You will see that it is converted into an ASCII netlist; originally the conversion was done by hand. A schematic is merely syntactic sugar.

Try LTSpice, and all will become clear.

It isn't difficult, but it will be a valuable learning experience for you. Yes, that requires you to do some work, but you will gain from that.
« Last Edit: October 31, 2024, 12:23:05 am by tggzzz »
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Online Analog KidTopic starter

  • Frequent Contributor
  • **
  • Posts: 865
  • Country: us
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #23 on: October 31, 2024, 12:25:16 am »
Somehow I knew you'd come back with that.
What's with your insistence that I use Spice to model this?
Like I said before: you're not my Electronics 203 professor.
Thanks but no thanks; I don't roll that way (entering code into Spice).
 

Offline tggzzz

  • Super Contributor
  • ***
  • Posts: 21092
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: Current mirror question: hybrid mirror (PNP/NPN)?
« Reply #24 on: October 31, 2024, 12:37:32 am »
Somehow I knew you'd come back with that.
What's with your insistence that I use Spice to model this?
Like I said before: you're not my Electronics 203 professor.
Thanks but no thanks; I don't roll that way (entering code into Spice).

Why? "Give a man a fish and you have fed him for a day, but teach a man to fish and you have fed him for his lifetime" - old proverb.

"You can lead a horse to water, but you can't make it drink" - another old proverb.
« Last Edit: October 31, 2024, 12:42:42 am by tggzzz »
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf