Handling interrupts – ADC

Home Forums Microcontrollers PIC Microcontroller Handling interrupts – ADC

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

    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??


    Ligo George

    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.

    George Mathew

    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.