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 working sometimes

5633.hello.rar

What happens is that, i want to use several ADC's, all from ADC0, and i was using channels 0,1,2,4,5,6, and 10 without any problem.

I added 3 more, the 7, 8 and 9 and my code stopped working.

I reconfigured the channels to use from 0 to 9, and no luck, the code i'm using its in this post so that you may find some problem eventually.

The code is reading the ADC's, and sending to the Uart the values to show on putty.

PF1 and PF2 is giving me a PWM signal and if i click the left button it changes the PWM value.

First blue led light's on and if you press left button, red turns on.

  • Hello Victor

    The sequencer 0 can have upto 8 channels mapped. Clearly in the code there are more than 8 channels mapped to sequencer 0. As a result the ADC does not know when to stop and give an interrupt.

    Please make sure that only 8 channels are mapped in sequencer 0, 4 in sequencer 1 and 2 and 1 in sequencer 3.

    Regards

    Amit