Reply by Alesandro Correa August 11, 20082008-08-11
anyone have a example? any speed above of 100ksps?

tks.

Alessandro

To: m...From: o...@bigpond.net.auDate: Sat, 9 Aug 2008 04:30:02 +0930Subject: Re: [msp430] ADC Sample Rate

Ok, you're obviously manually triggering the samples since you haven't set up the sequencer. This makes your sampling wholly dependant upon the interrupt handler, which is likley to be much slower in c than asm, this for one will slow you down. The way to get the highest conversion speeds is to use consecutive samples of the same pin, and absolute minimalist interrupt handlers. C usually isn't very good at this, often the interrupt overhead with C is quite high, ie the amount of data stacked on entry and exit is often higher than would be the case with assembler. The ADC itself will run slightly faster than 200ksps, but with data handling this slows down. DMA helps with the data transfer, but it isn't too hard to get 200ksps without DMA, the 149 for example does this easily.CheersAlAlesandro Correa wrote:>ok,> >I used ane channel, internal ADC oscillator Clock.> >Others configs:> >DCOCTL = CALDCO_16MHZ;>BCSCTL1 = CALBC1_16MHZ;> >P1OUT = 0;>P4OUT = 0;P4DIR = 0xFF;>P1DIR = 0xFF;>P3DIR = BIT5;>P6SEL |= BIT1;// P6.0 ADC option select >ADC12CTL0 = SHT0_2 + SHT1_2 + ADC12ON;//old configuration>ADC12CTL1 = SHP;>ADC12IE = 0x01;>ADC12CTL0 |= ENC;> > > >tks>>>>To: msp4...From: o...@bigpond.net.auDate: Fri, 8 Aug 2008 21:29:34 +0930Subject: Re: [msp430] ADC Sample Rate>>>>>What about the rest of the configuration? SHT1 and SHT0 only set up the sample and hold time as a number of sample clocks. Where are you setting the sample clock? this is what actually contrls the conversion rate. Conversion time = (sample and hold time + conversion time) * number of channels. you haven't set up the operating mode, start channel, or anything else of relevance. this is well documented in the user guide. ADC12CTL1 is used to select the clock source, and set the clock divider. Tsample is given in the data sheet as ~1200nsecs, Tconvert using the internal ADC12 oscillator is given as 2.06 to 3.51usecs. Tconvert using an external clock source such as ACLK, SMCLK or MCLK is 13 x the clock period.These thingsd easily run at 200ksps, you just need to study the users guide and make sure everything is set.AlAlesandro Correa wrote:>Hi all,> >Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock.> >Im not obtain speeds over 37ksps.> >My configs:> > ADC12CTL0 = SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value several times only test. ADC12CTL1 = SHP; ADC12IE = 0x01; ADC12CTL0 |= ENC;> >What the correct configuration for great speed?> >Alessandro>__________________________________________________________>Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!>http://www.amigosdomessenger.com.br>>[Non-text portions of this message have been removed]>>>------------------------------------>>>>

Beginning Microcontrollers with the MSP430

Reply by Onestone August 8, 20082008-08-08
Ok, you're obviously manually triggering the samples since you haven't
set up the sequencer. This makes your sampling wholly dependant upon the
interrupt handler, which is likley to be much slower in c than asm,
this for one will slow you down. The way to get the highest conversion
speeds is to use consecutive samples of the same pin, and absolute
minimalist interrupt handlers. C usually isn't very good at this, often
the interrupt overhead with C is quite high, ie the amount of data
stacked on entry and exit is often higher than would be the case with
assembler. The ADC itself will run slightly faster than 200ksps, but
with data handling this slows down. DMA helps with the data transfer,
but it isn't too hard to get 200ksps without DMA, the 149 for example
does this easily.

Cheers

Al

Alesandro Correa wrote:

>ok,
>
>I used ane channel, internal ADC oscillator Clock.
>
>Others configs:
>
>DCOCTL = CALDCO_16MHZ;
>BCSCTL1 = CALBC1_16MHZ;
>
>P1OUT = 0;
>P4OUT = 0;P4DIR = 0xFF;
>P1DIR = 0xFF;
>P3DIR = BIT5;
>P6SEL |= BIT1;// P6.0 ADC option select
>ADC12CTL0 = SHT0_2 + SHT1_2 + ADC12ON;//old configuration
>ADC12CTL1 = SHP;
>ADC12IE = 0x01;
>ADC12CTL0 |= ENC;
>
>
>
>tks
>
>To: m...From: o...@bigpond.net.auDate: Fri, 8 Aug 2008 21:29:34 +0930Subject: Re: [msp430] ADC Sample Rate
>What about the rest of the configuration? SHT1 and SHT0 only set up the sample and hold time as a number of sample clocks. Where are you setting the sample clock? this is what actually contrls the conversion rate. Conversion time = (sample and hold time + conversion time) * number of channels. you haven't set up the operating mode, start channel, or anything else of relevance. this is well documented in the user guide. ADC12CTL1 is used to select the clock source, and set the clock divider. Tsample is given in the data sheet as ~1200nsecs, Tconvert using the internal ADC12 oscillator is given as 2.06 to 3.51usecs. Tconvert using an external clock source such as ACLK, SMCLK or MCLK is 13 x the clock period.These thingsd easily run at 200ksps, you just need to study the users guide and make sure everything is set.AlAlesandro Correa wrote:>Hi all,> >Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock.> >Im not obtain speeds over 37ksps.> >My configs:> > ADC12CTL0 = SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value several times only test. ADC12CTL1 = SHP; ADC12IE = 0x01; ADC12CTL0 |= ENC;> >What the correct configuration for great speed?> >Alessandro>__________________________________________________________>Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!>http://www.amigosdomessenger.com.br>>>>>------------------------------------>>>>
Reply by Alesandro Correa August 8, 20082008-08-08
ok,

I used ane channel, internal ADC oscillator Clock.

Others configs:

DCOCTL = CALDCO_16MHZ;
BCSCTL1 = CALBC1_16MHZ;

P1OUT = 0;
P4OUT = 0;P4DIR = 0xFF;
P1DIR = 0xFF;
P3DIR = BIT5;
P6SEL |= BIT1;// P6.0 ADC option select
ADC12CTL0 = SHT0_2 + SHT1_2 + ADC12ON;//old configuration
ADC12CTL1 = SHP;
ADC12IE = 0x01;
ADC12CTL0 |= ENC;



tks

To: m...From: o...@bigpond.net.auDate: Fri, 8 Aug 2008 21:29:34 +0930Subject: Re: [msp430] ADC Sample Rate

What about the rest of the configuration? SHT1 and SHT0 only set up the sample and hold time as a number of sample clocks. Where are you setting the sample clock? this is what actually contrls the conversion rate. Conversion time = (sample and hold time + conversion time) * number of channels. you haven't set up the operating mode, start channel, or anything else of relevance. this is well documented in the user guide. ADC12CTL1 is used to select the clock source, and set the clock divider. Tsample is given in the data sheet as ~1200nsecs, Tconvert using the internal ADC12 oscillator is given as 2.06 to 3.51usecs. Tconvert using an external clock source such as ACLK, SMCLK or MCLK is 13 x the clock period.These thingsd easily run at 200ksps, you just need to study the users guide and make sure everything is set.AlAlesandro Correa wrote:>Hi all,> >Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock.> >Im not obtain speeds over 37ksps.> >My configs:> > ADC12CTL0 = SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value several times only test. ADC12CTL1 = SHP; ADC12IE = 0x01; ADC12CTL0 |= ENC;> >What the correct configuration for great speed?> >Alessandro>__________________________________________________________>Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!>http://www.amigosdomessenger.com.br>>>>>------------------------------------>>>>
Reply by Onestone August 8, 20082008-08-08
No you don't.

Al

Hernan Tradatti wrote:

>Hi,
>In order to achieve that sampling rate you need to use de DMA controller.
>Bye,
>Hernan
>
>To: m...From: a...@hotmail.comDate: Fri, 8 Aug 2008 11:36:39 +0000Subject: [msp430] ADC Sample Rate
>Hi all,Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock.I'm not obtain speeds over 37ksps.My configs:ADC12CTL0 = SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value several times only test. ADC12CTL1 = SHP; ADC12IE = 0x01; ADC12CTL0 |= ENC;What the correct configuration for great speed?Alessandro__________________________________________________________Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!http://www.amigosdomessenger.com.br
>
>_________________________________________________________________
>Your PC, mobile phone, and online services work together like never before.
>http://clk.atdmt.com/MRT/go/108587394/direct/01/
>
>
>
Reply by Alesandro Correa August 8, 20082008-08-08
Without using DMA I can not work with at least half the speed?

Alessandro

To: m...From: h...@hotmail.comDate: Fri, 8 Aug 2008 11:49:20 +0000Subject: RE: [msp430] ADC Sample Rate

Hi,In order to achieve that sampling rate you need to use de DMA controller.Bye,HernanTo: m...From: a...@hotmail.comDate: Fri, 8 Aug 2008 11:36:39 +0000Subject: [msp430] ADC Sample RateHi all,Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock.Im not obtain speeds over 37ksps.My configs:ADC12CTL0 = SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value several times only test. ADC12CTL1 = SHP; ADC12IE = 0x01; ADC12CTL0 |= ENC;What the correct configuration for great speed?Alessandro__________________________________________________________Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!http://www.amigosdomessenger.com.br __________________________________________________________Your PC, mobile phone, and online services work together like never before.http://clk.atdmt.com/MRT/go/108587394/direct/01/[Non-text portions of this message have been removed]

_________________________________________________________________
Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!
http://www.amigosdomessenger.com.br


Reply by Onestone August 8, 20082008-08-08
What about the rest of the configuration? SHT1 and SHT0 only set up the
sample and hold time as a number of sample clocks. Where are you setting
the sample clock? this is what actually contrls the conversion rate.
Conversion time = (sample and hold time + conversion time) * number of
channels. you haven't set up the operating mode, start channel, or
anything else of relevance. this is well documented in the user guide.
ADC12CTL1 is used to select the clock source, and set the clock divider.
Tsample is given in the data sheet as ~1200nsecs, Tconvert using the
internal ADC12 oscillator is given as 2.06 to 3.51usecs. Tconvert using
an external clock source such as ACLK, SMCLK or MCLK is 13 x the clock
period.

These thingsd easily run at 200ksps, you just need to study the users
guide and make sure everything is set.

Al

Alesandro Correa wrote:

>Hi all,
>
>Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock.
>
>I'm not obtain speeds over 37ksps.
>
>My configs:
>
> ADC12CTL0 = SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value several times only test. ADC12CTL1 = SHP; ADC12IE = 0x01; ADC12CTL0 |= ENC;
>
>What the correct configuration for great speed?
>
>Alessandro
>_________________________________________________________________
>Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!
>http://www.amigosdomessenger.com.br
>
>
>
Reply by Hernan Tradatti August 8, 20082008-08-08
Hi,
In order to achieve that sampling rate you need to use de DMA controller.
Bye,
Hernan

To: m...From: a...@hotmail.comDate: Fri, 8 Aug 2008 11:36:39 +0000Subject: [msp430] ADC Sample Rate

Hi all,Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock.Im not obtain speeds over 37ksps.My configs:ADC12CTL0 = SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value several times only test. ADC12CTL1 = SHP; ADC12IE = 0x01; ADC12CTL0 |= ENC;What the correct configuration for great speed?Alessandro__________________________________________________________Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!http://www.amigosdomessenger.com.br[Non-text portions of this message have been removed]

_________________________________________________________________
Your PC, mobile phone, and online services work together like never before.
http://clk.atdmt.com/MRT/go/108587394/direct/01/


Reply by Alesandro Correa August 8, 20082008-08-08
Hi all,

Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock.

Im not obtain speeds over 37ksps.

My configs:

ADC12CTL0 = SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value several times only test. ADC12CTL1 = SHP; ADC12IE = 0x01; ADC12CTL0 |= ENC;

What the correct configuration for great speed?

Alessandro
_________________________________________________________________
Cansado de espa para s50 fotos? Conhe o Spaces, o site de relacionamentos com at6,000 fotos!
http://www.amigosdomessenger.com.br