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.

TM4C123GXL Multi-Channel ADC Operation

Other Parts Discussed in Thread: EK-TM4C123GXL

Hello,

Are there any sample codes for the TM4C123GXL multi-channel ADC operation, such as dual channels or 8 channels etc.

Thanks a lot.

cw.

  • Hi CW,

    The EK-TM4C123GXL has 2 ADCs that read from the 12 input pins. I think this is what you are asking? It has 2 channels.

    Each ADC can run at high speed, up to 1,000,000 samples/second. When running both you can interleave the samples to achieve 2x the sample rate, or you can synchronize the samples for simultaneous sampling of 2 values at once.

    There are some hard problems related to bandwidth when you get 2 million 12-bit samples per second. If you can share details of what you need to do that would help.

    Tivaware includes ADC code under examples/peripherals/adc - this forum has more examples, for example: http://e2e.ti.com/support/microcontrollers/tiva_arm/f/908/t/331374.aspx - none of these examples include 2 channel Edit: Petrei has pointed out a good example.

    Please definitely take some time to carefully study the ADC section of the CPU data sheet. Post your code and your question, and we'll try to help.

    Cheers,

    David

  • Hi,

    An example in this location: Tiva-2.1.0.12573/examples/boards/dk-tm4c123g/qs-logger

    Also boards/ek-lm4f232/qs-logger

    Both with multiple channels.

    Petrei