Shop OBEX P1 Docs P2 Docs Learn Events
Silly Electronic question — Parallax Forums

Silly Electronic question

Beau SchwabeBeau Schwabe Posts: 6,568
edited 2005-04-20 14:10 in General Discussion
Ok, so I know the answer to this (I think) but I had a rather lengthy
discussion with a co-worker of mine that insists that the two circuits
below are fundamentally different. With the exception that one provides
an inverted output compared to the other one, I personally do not see a
fundamental difference... Am I missing something? Also, this person
swears up and down that you can not swap R1 and Q1 and expect the
circuits to function the same.... At this point I realized this would be a
moot argument.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe - Mask Designer III

National Semiconductor Corporation
Latest Company News
(Communication Interface Division)
500 Pinnacle Court, Suite 525
Mail Stop GA1
Norcross,GA 30071
442 x 499 - 6K
434 x 498 - 6K

Comments

  • SteveWSteveW Posts: 246
    edited 2005-03-23 10:30
    Just waiting for a Xilinx run, so I thought I'd have a go at this -
    Yep, I see no fundamental difference, it's all symmetrical, as you suggest.
    A quick LTSpice run (.asc available, if you care), with 2N2222s with current injected into the base (I can't think of a better way to easily model a phototransistor...) says that they're pretty equivalent, too.

    As for swapping R1 and Q1, I guess that depends where the light is arriving on the PCB [noparse]:)[/noparse]

    Steve
  • KenMKenM Posts: 657
    edited 2005-03-23 15:26
    Ecept for the inversion, what does your co-worker say is fundamentally different?
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2005-03-23 16:32
    KenM,

    Take into account that this person is a circuit designer (scary thought), and does
    not deal with Bipolar transistors day-in day-out... mostly just CMOS transistors.

    This person claims that the NPN version is not of a "conventional circuit" whatever
    that means and that it shouldn't work at all like the PNP version inverted or not.

    (a little background) .....Originally when I asked a question about the circuit it
    was in it's NPN form. My co-worker proceeds to draw the PNP version, to which
    I exclaim that "they are functionally the same". From here the silly argument
    that started debate began.



    SteveW,

    I might be interested in looking at your .asc The light source to the phototransistor
    is about 60Hz 500uS wide pulses, modulated with a 31kHz carrier.

    As far as swapping R1 and Q1... I told my co-worker that I might be able to see a
    problem if the components were sitting on the same substrate such as in a CMOS IC
    design, but since the components are discrete devices there would be no substrate
    sharing, and this would not be an issue.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe - Mask Designer III

    National Semiconductor Corporation
    Latest Company News
    (Communication Interface Division)
    500 Pinnacle Court, Suite 525
    Mail Stop GA1
    Norcross,GA 30071
  • SteveWSteveW Posts: 246
    edited 2005-03-23 16:52
    OK, I'll see if I can attach some files to this...
    Nope - I'll try and zip it.
    Yep - that seems to have worked. There are .wmfs of the schematic and the plot, too.

    Steve

    (Oops - uploaded a duff old version the first time. If you got the one with current sources from B<->E, rather than capacitive voltage sources, on the phototransistors, you're safe. )

    Steve

    (These are definitely discrete devices being modelled - no substrate or any other integrated stuff going on)

    Post Edited (SteveW) : 3/23/2005 5:05:21 PM GMT
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-03-23 17:39
    Yeah I cannot discern any difference between the two, just your standard current mirroring setup, with a photodiode as the current setting device. The only difference I can tell is if this were implemented on an IC with the phototransistor also on die, the substrate bias of the photodiode could affect its characteristics between the two circuits, but I would think this would be a minor effect.
  • SteveWSteveW Posts: 246
    edited 2005-03-23 17:58
    Here's another schematic and set of plots, with your burst mode and 10uA base currents into the 'optotransistor'. Still not a jot of difference. I suspect either we, or the other guy, are missing something.
    Did this disagreement hinge on schematics drawn on beermats? [noparse]:)[/noparse]

    Steve
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2005-03-23 19:03
    Thanks SteveW
    you said...

    I suspect either we, or the other guy, are missing something.
    Did this disagreement hinge on schematics drawn on beermats?
    smilewinkgrin.gif


    More likely the case... This person is "technically" the only circuit designer
    here at this facility. Since I pretty much only do IC layout (build the resistors,
    inductors, capacitors, diodes, transistors, etc. from the schematics the designer
    hands to me), it is easy to forget that there are other people fully capable of
    design. It will definitely shed some light on how I will perceive this persons
    abilities in future applications when I receive a schematic to work on.

    This thread was more of a sanity check.... I thought I might have overlooked
    something that should have bit me. Thanks for the input!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe - Mask Designer III

    National Semiconductor Corporation
    Latest Company News
    (Communication Interface Division)
    500 Pinnacle Court, Suite 525
    Mail Stop GA1
    Norcross,GA 30071
  • nick bernardnick bernard Posts: 329
    edited 2005-03-23 19:41
    hey beau, is this designer green (fresh out of school, like me) or is he old school & infatuated with solid state design. in either case he's probably over analyzing the problem for the sake of arguement so take him with grain of salt. or he could just be ignorant (also like me) in which case you should take him with a box of salt; i prefer kosher salt.

    the only minor difference i see in the ckt is (and i could be wrong here):
    with the npn ckt
    +5v - VR2 > Vout > Vce - GND

    with the pnp
    +5v - Vce > Vout > VR2 - GND

    right?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    League Bowling.... it's not a sport, it's a way of life
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2005-03-23 20:07
    Nick,

    I would not consider him green, but I think he likes to argue...

    you said...

    the only minor difference i see in the ckt is (and i could be wrong here):
    with the npn ckt
    +5v - VR2 > Vout > Vce - GND

    with the pnp
    +5v - Vce > Vout > VR2 - GND

    You are correct, thus the inversion between the two. The output varies slightly
    from the function of R2 configured as a pull-up or pull-down and the .6V rail limitation
    through Q3.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe - Mask Designer III

    National Semiconductor Corporation
    Latest Company News
    (Communication Interface Division)
    500 Pinnacle Court, Suite 525
    Mail Stop GA1
    Norcross,GA 30071
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2005-03-31 16:50
    I suspect Beau likes a good argument too. heh. heh... Still, this is all very interesting to read. It sharpens my understanding of NPN and PNP on several levels. Thaks

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    G. Herzog in Taiwan
  • Harry W. LewisHarry W. Lewis Posts: 13
    edited 2005-04-20 14:10
    One difference in the circuits is that one is referenced to the +supply and the other is referenced to ground. This could make a difference in supply noise getting to the next stage.

    Also, these circuits are using a current mirror topology. That is something that works very well in integrated form but is not very good in discrete form. When on the same die, the two current mirror transistors are at the same temperature and have had the same processing. That is not true of the discrete parts shown. Neither would be very good circuits for production in discrete form.
Sign In or Register to comment.