I have the TM4C123GH6PM board and I would love to know how to code 5 ADC inputs on sequencer 0 using direct register coding. Ideally I would like to use pins E0-E4
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.
I have the TM4C123GH6PM board and I would love to know how to code 5 ADC inputs on sequencer 0 using direct register coding. Ideally I would like to use pins E0-E4
Hello,
As stated for TM4C, we do not support direct register coding on E2E: https://e2e.ti.com/support/microcontrollers/other/f/other-microcontrollers-forum/695568/faq-read-before-posting-tm4c-forum-general-guidelines
You can use TivaWare to put together a working example and then review the TivaWare API to find the DRM calls you need to make. You can find a starting point with our Single Ended example located at [Install Path]\TivaWare_C_Series-2.2.0.295\examples\peripherals\adc
Hello,
Use the single_ended example as a basis but then for each channel you are adding, you will use a new ADCSequenceStepConfigure API for configuration. So you:
1) Enable GPIO
2) Set GPIN Pin Type for ADC
3) Configure the ADC sequence
4) Configure each ADC channel
5) Enable the ADC sequence.