I need help on the compare module


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: I need help on the compare module

    Hi,
    I'd suggest that you forget about the comparators for now, they COULD be used for what you want but the ADC will be easier for you.

    To use the Analog to Digital Converter you use the ADCIN command. That command and all the others are decribed in the manual you shouldn've received when you bought PBP. If you have PBP3 then the manual even got installed as a.pdf on your system when you installed the compiler. If you have MicroCodeStudio a lot of information is available in the Help, the datasheet for your PIC is available from Microchips website and I'm sure that if you search the forum you'll find a LOT of info and examples showing how to use the ADC.

    /Henrik.

  2. #2
    Join Date
    Jan 2012
    Posts
    24


    Did you find this post helpful? Yes | No

    Default Re: I need help on the compare module

    Quote Originally Posted by HenrikOlsson View Post
    Hi,
    I'd suggest that you forget about the comparators for now, they COULD be used for what you want but the ADC will be easier for you.

    To use the Analog to Digital Converter you use the ADCIN command. That command and all the others are decribed in the manual you shouldn've received when you bought PBP. If you have PBP3 then the manual even got installed as a.pdf on your system when you installed the compiler. If you have MicroCodeStudio a lot of information is available in the Help, the datasheet for your PIC is available from Microchips website and I'm sure that if you search the forum you'll find a LOT of info and examples showing how to use the ADC.

    /Henrik.
    i have read the ADCIN command but i i do no how to link this command with the comparator, my aim is to design dc dc conveter with constant current by varying output voltage after comparison, So it's better for u HenrikOlsson to help me by giving sample code on that issue

  3. #3
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: I need help on the compare module

    You can not use the ADCIN with the comparators. ADCIN is for the ADC.
    On my project i dont want to know whether the output is low or high but i want to know exactly magnitude of output voltage
    Again, you can not use the comparators for what you want without doing some tricks which I told you about in my first reply. The peripheral to use for measuring the actual voltage is the Analog to Digital converter (ADC) for which the ADCIN command works.

    Why have you are you obsessing on the comparators? What am I missing?

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