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.

TMS570LS3137: Re-initializing the ADC Driver during run time

Part Number: TMS570LS3137

Somewhat of a random question, if I wanted to be able to use ADC1 Group 1 for each pin individually could I do that.

My thought was that I could re-initialize (for lack of a better word) the ADC Driver each time I wanted to switch the pin. I feel like this might not be possible because some of those registers might need to be setup in privilege mode.  

The reason I want to do this, is for board bring up. The HW team would like to pull each ADC individually based on a command that they feed in. I could give them further control by allowing them to command which ADC and which group they want. Once I decode their command, the software would setup the ADC/Group/Channel then pull the data, send the data back out, and close the ADC.

I realize the work around would be to set up 2 or 3 or 4 groups that pull sets of channels and then pipe out the data for the channel they requested, but if I can give them what they want on the fly then all the better.

Thanks for the help.