Hello,
I'm using the ez430-rf2500, I need to manage 4 ADC at the same time. I tried to call them as diferent functions, but the ADC returns the same value all the time.
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.
Hello,
I'm using the ez430-rf2500, I need to manage 4 ADC at the same time. I tried to call them as diferent functions, but the ADC returns the same value all the time.
As Leo said, the ADC10 can only sample one input at a time. If your functions require the ADC results without any ‘handshake’ between them, a possible solution is to run the ADC independently, scanning all inputs over and over again and writing the results into a memory array. So the functions can just pick the latest result from the array whenever they need it.
**Attention** This is a public forum