16F1705 internal Opamp woes


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Posts
    458


    Did you find this post helpful? Yes | No

    Default Re: 16F1705 internal Opamp woes

    Code:
    OPA1CON = %1100000          ' Opamp 1 Enabled, SP set.
    Isn't that missing a bit?
    Try
    Code:
    OPA1CON = %11000000          ' Opamp 1 Enabled, SP set.
    For OPAMP1 you have
    Code:
    ' RC2  (pin 8)    AN6, Opamp1Out.       ### output - see notes.
    ' RC1  (pin 9)    AN5, Opamp1in-.       Junction of RF and RG.
    ' RC0  (pin 10)   AN4, Opamp1in+.       + sense of 0R1 series load resistor.
    So, to use these for the opamp:
    - set the TRIS bits for RC0, RC1, and RC2
    - set ANSEL bits for AN4, AN5, and AN6

  2. #2
    Join Date
    Jun 2005
    Location
    West Australia
    Posts
    116


    Did you find this post helpful? Yes | No

    Default Re: 16F1705 internal Opamp woes

    Hi Tumbleweed,

    You are a star, thank you.

    I don't know how I missed that bit, correcting it saw the Opamp spring to life... in fact I tried a bunch of combinations with TRIS and ANSEL and it was difficult to make the Opamp fail to do its job!

    It sounds obvious but to use the Opamp as a buffer one needs to remove any feedback resistors (of course).

    Thanks again, I hope this is of use to others.

    Kind regards,
    Bill

Similar Threads

  1. Current sensor output modification. PIC or opamp or something else?
    By retepsnikrep in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th December 2020, 06:22
  2. Weirdness with 16F1705's eeprom and DAC
    By wjsmarine in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 5th August 2020, 07:01
  3. Hserin / out Woes..
    By andybarrett1 in forum Serial
    Replies: 11
    Last Post: - 27th April 2015, 23:57
  4. How can I get a PIC to switch 2.5V DC to my Opamp pin?
    By HankMcSpank in forum Schematics
    Replies: 4
    Last Post: - 9th January 2010, 23:04
  5. Still HSEROUT woes
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 34
    Last Post: - 11th July 2006, 22:13

Members who have read this thread : 0

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