Using Comparators


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2009
    Location
    Las Vegas - Nevada
    Posts
    3

    Default Using Comparators

    I have been trying to find examples of using comparators.

    Also, I detect that you can set the Vref by software. If this is possible, how do you accomplish it.

    Further, how do you read the results of the comparator.

    I am looking at the 12F675

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


    Did you find this post helpful? Yes | No

    Default

    Many years ago (too many!!), I did a Comparator tutorial on the (then) piclist, a link to the archive where it can be found is here...

    http://list.picbasic.com/forum/messa...tml?1020960642

    Although it was for the 16F628, the principle is exactly the same... on the 12F675 you will need to remember to disable the ADC's.

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


    Did you find this post helpful? Yes | No

    Wink

    Hi, Mel

    Sorry, but ...
    HTTP 404
    regards

    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
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Prime example of why folks should never use COPY and PASTE with their PICBASIC code!

    Corrected - Thanks Alain!

  5. #5
    Join Date
    Nov 2009
    Location
    Las Vegas - Nevada
    Posts
    3


    Did you find this post helpful? Yes | No

    Smile

    Thank you Melanie!

    I finally understand.

Similar Threads

  1. Comparators on 18F4520
    By RacerX10 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 27th August 2009, 23:33
  2. Comparators - like descrite components?
    By kevj in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th October 2007, 18:17
  3. Need help to shut off comparators for 16f688
    By jessey in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 30th October 2006, 04:54
  4. Need setting to turn off 16F688 comparators
    By Thomas Williams in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd December 2005, 00:39
  5. 16F88 using comparators AND the adc
    By jpeakall in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 13th May 2005, 01:08

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