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.

F28M35 ADC configuration

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

I would like to configure the ADCs of F28M35 but reading the documents spruh22e and sprs742g makes me confused.

As I understand table 4-49 in document spruh22e, I have to set bit1 of register AIOMUX1 if I want to read ADCINA0. But, if I see table 4-56 in document sprs742g these bits are reserved.

How do I have to understand this?

Regards, Matthias

  • Hi Matthias,

      I'm sorry you are having trouble.  You do not need to set a bit in the AIOMUX1 to configure ADCINA0 as an ADC input pin.  That pin only has one function (ADC input) and therefore the behavior you desire will be selected on reset.  This is also the reason those bits are reserved.  If you compare the two tables you mention, you'll notice the bits which control pins that have multiple functions are not reserved but all which only have the function of ADC input are reserved.  This is because the bit has no affect.

      If you haven't done so already I would recommend you download controlSUITE which has an ADC example in the "F28M35x_examples_Control" subdirectory.  This will at least provide a known working starting point for code development.

    I hope this helps!

    regards, Joe

  • Hi Joe,

    thanks for the quick response. Your answer helps me a lot.

    Regards, Matthias