Opamps in the 16F785.


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237

    Cool Opamps in the 16F785.

    Hi folks,

    I've just started a project using a 16F785 and had problems with the opamps, i just couldn't get one of them to work. After some headscratching i found the fault in the M16F785.INC file. The registers OPA1CON and OPA2CON are mapped to the wrong adresses.

    Original......
    OPA1CON equ 11Dh ;
    OPA2CON equ 11Eh ;
    ....should be ......
    OPA1CON equ 11Ch ;
    OPA2CON equ 11Dh ;

    This may have been fixed in a later version(still using 2.46) but i can't se anything at Melabs that indicates this.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Hi Ingvar,

    Someone must have noticed & corrected this. These are both mapped to the correct
    address in M16F785.INC for v2.47 and v2.50.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Jul 2003
    Location
    Sweden
    Posts
    237


    Did you find this post helpful? Yes | No

    Smile

    Thanks Bruce, good to know.

Similar Threads

  1. 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, 22:04
  2. 16f785
    By RussMartin in forum General
    Replies: 4
    Last Post: - 11th November 2008, 18:20

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