Handling interrupts – ADC

Home Forums Microcontrollers PIC Microcontroller Handling interrupts – ADC

This topic contains 2 replies, has 2 voices, and was last updated by  George Mathew 1 year, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12006

    George Mathew
    Participant

    Dear Sir,

    My requirement is that, adc program should run all the time giving result without the intervention of the main program and if adc value goes below a particular limit, some action should be performed in background.

    At the same time uart sending, receiving and other tasks should run as main program ie. at the front. Even if, mcu waits for a character/string input, if adc goes below a particular value, some tasks must be done.

    How can we handle interrupts in this situation??

     

    #12009

    Ligo George
    Keymaster

    Dear George,

    You can’t do it using ADC interrupts. ADC interrupt will always generate when the A/D conversion is completed. But you can do it using Comparator Module of PIC Microcontroller.

    #12010

    George Mathew
    Participant

    Thank you sir….

    I dont know how to use comparator module…

    but I have managed all the activities using Timer interrupts.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

string(7) "9898001"