A PIC logic 0V output is not equal to a ground?


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2009
    Posts
    653

    Default A PIC logic 0V output is not equal to a ground?

    I've put a question mark at the end of the Subject heading, but I can kind of answer my own question!

    If I physically ground the +ve input to this opamp pin (using a flying lead to connect the pin to ground), the opamp's output inverts vs the input (as it should)....



    but if I then change by connecting that same opamp pin but directly to a PIC pin & then set the PIC pin as an output 'LOW' - weird stuff happens (the output from the opamp looks akin to a full wave recified signal - ie where the negative cycle is flipped up)

    So, a PIC's 0V ouput isn't ground?
    (no laughing at the back - I might be stating the obvious to you, but not to me!)

    What would be my best option to ground that opamp pin under PIC control? (I've tried a CD4066 with poor results - same thing ....the opamp's output looks full wave rectified!)
    Last edited by HankMcSpank; - 16th November 2009 at 16:59.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Try a low gate voltage (1.5v or 2.5v) NFET, something that will handle low current. That should work reliably.

    Nick

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    Hi Hank,

    the opamp's output looks full wave rectified!)
    Quite annoying for 180° out of phase looked for ...



    The good question might be : what does my OPA do with inputs tied to ground ???

    This is generally called " Common mode Input Voltage Range "

    RTFDatasheet ... in short terms !

    741 ( ! ) or 5532 AOP ???

    also remember PIC pin must be OR left floating OR Grounded ....

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Mar 2009
    Posts
    653


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Hi Hank,

    The good question might be : what does my OPA do with inputs tied to ground ???
    I wouldn't know how to interpret the opamp datasheet for that kind of thing! But I do know when I hardwire the Opamp's +ve pin to ground...the circuit performs as expected (input signal is inverted)...remove the ground & the input is non inverted at the ouput. However when applying a PIC output low in the same manner - eeeeugh. That particular circuit is a fairly generic circuit & not specific to any particular opamp variant.

    Nick, I'll give that a go, but I'm not confident - if a CD4066 doesn't work in situ (which as very low channel 'on' resistance), then it's likely to have a similar outcome!
    Last edited by HankMcSpank; - 16th November 2009 at 19:33.

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink

    So, use MacGman idea ...

    a 2N7000 or 7002 will do it !!!

    BTW ... which is the OPA supply voltage ??? ...

    Alain
    Last edited by Acetronics2; - 16th November 2009 at 19:47.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Yes, most digital logic outputs are not purely ground. The are guaranteed to be within a certain range close to 0, usually 0.2 v which is typical VCE of a saturated transitor. For your application, the lowest Rds FET you can find would work best. Also make sure it can be controlled by a 5VDC signal. Like a BSS138LT or Si4410BDY or IRLL014N.
    Tim Barr

Similar Threads

  1. Variable voltage output from a Pic?
    By Dan_lay in forum General
    Replies: 8
    Last Post: - 24th June 2013, 20:25
  2. Controlling power to a PIC with another PIC
    By jswayze in forum Off Topic
    Replies: 3
    Last Post: - 28th May 2005, 19:44
  3. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14
  4. Bluetooth wireless with PIC / HSERIN / DAC
    By rpatel in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 20th December 2004, 22:13
  5. PIC vs PLC (programmable logic controller)
    By pondindustrial in forum Off Topic
    Replies: 4
    Last Post: - 17th December 2004, 21:11

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts