18F2525 A/D, Comparator and Vref modules


Closed Thread
Results 1 to 3 of 3
  1. #1
    fbraun's Avatar
    fbraun Guest

    Default 18F2525 A/D, Comparator and Vref modules

    Hello

    I posted this on the Microchip website and don't have an answer yet. Perhaps someone here can shed some light on this for me.

    Given that:
    1. I've got my A/D module configured to use RA0 as its input
    2. RA3 and RA2 are configured as external Vref- and Vref+ inputs

    Questions:
    1. Can the Comparator module be enabled simultaneously with the A/D module and use RA0 as its analog Vin- input while the A/D module uses RA0 as its analog input?
    2. Can the Comparator module be enabled simultaneously with the A/D module AND the VREF module in the CM2:CM0 = 110 mode?

    This project only needs one of the comparators to be used simultaneously with the A/D module and the VREF module. The end result should be that the comparator output bit will be monitored and once the threshold is exceeded would trigger the A/D which would keep reading and do a peak detect on the same analog input. Analog sgnal frequencies are relatively low ( in the 50Khz range).

    Perhaps I've confused myself with the above givens and requirements. Any help would be greatly appreciated.

    Thanks
    Fritz

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


    Did you find this post helpful? Yes | No

    Default

    I think this is one of those questions where you're going to have to stuff a PIC into a breadboard and do a simple test. There's nothing in the Datasheet to say you can't... but there's nothing to say you can either.

  3. #3
    fbraun's Avatar
    fbraun Guest


    Did you find this post helpful? Yes | No

    Default

    Hi Melanie

    I thought as much and had already started tests. Was hoping that someone had already used the three modules simultaneously.

    Thanks
    Fritz

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