This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADC

Hi there,

Anyone can explain how does an ADC work in TM4C123G? I have confused and how does the ADC interrupt do?

Thank you.

  • Hi Jia,

    You probably don't really know much, hence the short question, but could you be more specific?

    I don't think you are referring to the ADC principle of operation which is based on Successive Approximation Register architecture (search that on the web if you want to know more)

    If you are referring to how to configure it and use it.
    The best way is to refer to an example an ask concrete question from that. For example, which interrupt are you talking about (the ADC has more than 1), also if you to want know what the ADC interrupt does, is the most as any other interrupt, sets the flag on the Raw interrupt or in the Masked if configured to do so - I think your question was more "what's is the ADC *insert interrupt name" does" or "what is the use of this interrupt flag for".

    it's still a bit incomplete but check this:
    https://sites.google.com/site/luiselectronicprojects/tutorials/tiva-tutorials/tiva-adc

    Maybe I raised more questions in you but maybe you already had this questions and were trying to get answers for them but expressed yourself wrong. Feel free make make more specific questions to help you understand.
  • Hello Luis,

    Actually i'm writing an ADC code (getting data from pressure transducer). However, i wonder should i use a timer interrupt to get the reading or ADC interrupt.
  • Hi Jia,

    Well, that depends.

    The timer trigger, not interrupt, is useful when you need samples with a consistent frequency. This is useful for some applications where it's important for the calculations having a known sample rate.

    I have never used such sensor so I don't know what type of data it outputs (or how it outputs).