You should set up one DMA to access ADCSingle, and set up ADCSingle to
acquire both channels into ADCMEM0 and ADCMEM1 sequentially, and then
have the DMA transfer them out.

Please see the flow charts in the msp430 User's guide.

-Joe

On 9/26/06, Raj Kumar <[EMAIL PROTECTED]> wrote:
Hi Joe
Thanks for your prompt response.
Are you  referring to MicDriver*.nc since I can not find the
MicrophoneDriver*.nc inthe directory mentioned
if it is MicDriver*.nc then I have been using the same thing for acquiring
data from the single channel and it is working fine.
I want to know how to do it for multiple channels say channel A0 and A1 .I
am creating separate instances of MSP430DMA and MSP430ADC12Single
for each channel and binding the ports as per same logic as for single
channel.
call ADC0.bind(ADC12_SETTINGS(INPUT_CHANNEL_A0,
                                 REFERENCE_VREFplus_AVss,
                                 SAMPLE_HOLD_4_CYCLES,
                                 SHT_SOURCE_ADC12OSC,
                                 SHT_CLOCK_DIV_2,
                                 SAMPCON_SOURCE_SMCLK,
                                 SAMPCON_CLOCK_DIV_1,
                                 REFVOLT_LEVEL_2_5));
  //2nd axis
call ADC1.bind(ADC12_SETTINGS(INPUT_CHANNEL_A1,
                                 REFERENCE_VREFplus_AVss,
                                 SAMPLE_HOLD_4_CYCLES,
                                 SHT_SOURCE_ADC12OSC,
                                 SHT_CLOCK_DIV_2,
                                 SAMPCON_SOURCE_SMCLK,
                                 SAMPCON_CLOCK_DIV_1,
                                 REFVOLT_LEVEL_2_5));

starting the sampling for the both channel at the same time.Now in first
channel I am able to acquire data as expected,but for the second channel I
am getting unexpected data.May I therefore request you to kindly suggest me
the solution.
I am sorry for wrinting you such a long mail and taking your time.
regards

Raj Kumar
----- Original Message -----
From: "Joe Polastre" <[EMAIL PROTECTED]>
To: "Raj Kumar" <[EMAIL PROTECTED]>
Cc: "tinyos-help_list" <tinyos-help@millennium.berkeley.edu>
Sent: Tuesday, September 26, 2006 7:45 PM
Subject: Re: MULTI CHANNEL DMA BASED DATA ACQUISITION


> See /opt/moteiv/tos/sensorboards/invent/MicrophoneDriver*.nc
>
> -Joe
>
> On 9/25/06, Raj Kumar <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi Joe
>> I am working on an application wherein we are to acquire data from
>> multichannels of accelerometer.After acquring say 500 points per channel
>> at
>> 2000 hz we are to store them in a flash.During this storing of data the
>> sampling goes on so that there is no loss of data. So we require DMA
>> based
>> sampling.I have been able to achieve single channel DMA based data
>> acqusition but not able to find how to extend the the same to three
>> channels.I have used MSP430ADCsingle for single channel.Also we are using
>> tmotes.
>> regards
>>
>> Raj Kumar
>> ACES 2069
>> IIT Kanpur
>> Ph 0512-3241300 ,0512-259-8069

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to