Jose F. Mingorance-Puga
2013-03-20 14:48:54 UTC
Hello,
I have been trying to figure it out but still cannot come to a conclusion.
I call the command Msp430DmaChannel.repeatTransfer to start a transfer
in the ADC. One of the arguments passed to the method is a buffer where
the quantized data should fall. The problem is, how can I know in which
position of the buffer is each channel of those I am converting?
In the beginning I just observed manually the contents of the buffer to
guess what channel was in what position, but now I am reconfiguring the
converter in runtime, and I do not know any more in which position each
channel goes. For instance, imagine first I am sampling gyroscope and
accelerometer. Then I disable the accelerometer and read the analog
channel 7. It would be useful to know how to identify what position of
the buffer contains each channel.
Sincerely,
Jose F. Mingorance-Puga
I have been trying to figure it out but still cannot come to a conclusion.
I call the command Msp430DmaChannel.repeatTransfer to start a transfer
in the ADC. One of the arguments passed to the method is a buffer where
the quantized data should fall. The problem is, how can I know in which
position of the buffer is each channel of those I am converting?
In the beginning I just observed manually the contents of the buffer to
guess what channel was in what position, but now I am reconfiguring the
converter in runtime, and I do not know any more in which position each
channel goes. For instance, imagine first I am sampling gyroscope and
accelerometer. Then I disable the accelerometer and read the analog
channel 7. It would be useful to know how to identify what position of
the buffer contains each channel.
Sincerely,
Jose F. Mingorance-Puga