The purpose of this group is to foster exchange of information on the Texas Instruments MSP430 family of microcontrollers and related tools. Everyone welcome, all levels of familiarity/expertise.
ADC Sample Rate - Alesandro Correa - Aug 8 7:38:54 2008
Hi all,
=20
Someone able to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with=
DCO clock.
=20
I=B4m not obtain speeds over 37ksps.
=20
My configs:
=20
ADC12CTL0 =3D SHT0_0 + ADC12ON; //This SHT0_0 is not correct,=
I change this value several times only test. ADC12CTL1 =3D SHP; =
ADC12IE =3D 0x01; ADC12CTL0 |=
=3D ENC;
=20
What the correct configuration for great speed?
=20
Alessandro
_________________________________________________________________
Cansado de espa=E7o para s=F3 50 fotos? Conhe=E7a o Spaces, o site de relac=
ionamentos com at=E9 6,000 fotos!
http://www.amigosdomessenger.com.br
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
RE: ADC Sample Rate - Hernan Tradatti - Aug 8 7:49:26 2008
Hi,
In order to achieve that sampling rate you need to use de DMA controller.
Bye,
Hernan
To: m...@yahoogroups.comFrom: 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 16M=
Hz with DCO clock.I=B4m not obtain speeds over 37ksps.My configs:ADC12CTL0 =
=3D SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change this value sev=
eral times only test. ADC12CTL1 =3D SHP; ADC12IE =3D 0x01; ADC12CTL0 |=3D E=
NC;What the correct configuration for great speed?Alessandro_______________=
___________________________________________Cansado de espa=E7o para s=F3 50=
fotos? Conhe=E7a o Spaces, o site de relacionamentos com at=E9 6,000 fotos=
!http://www.amigosdomessenger.com.br[Non-text portions of this message have=
been removed]=20
_________________________________________________________________
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]
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: ADC Sample Rate - Onestone - Aug 8 7:59:42 2008
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ço para só 50 fotos? Conheça o Spaces, o site de relacionamentos com até
6,000 fotos!
>http://www.amigosdomessenger.com.br
>
>[Non-text portions of this message have been removed]
>------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
RE: ADC Sample Rate - Alesandro Correa - Aug 8 8:00:10 2008
Without using DMA I can not work with at least half the speed?
=20
Alessandro
To: m...@yahoogroups.comFrom: 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...@yahoogroups.comFrom: a...@hotmail.comDate: Fri, =
8 Aug 2008 11:36:39 +0000Subject: [msp430] ADC Sample RateHi all,Someone ab=
le to use a ADC at 200ksps? I have used MSP430F2619 at 16MHz with DCO clock=
.I=B4m not obtain speeds over 37ksps.My configs:ADC12CTL0 =3D SHT0_0 + ADC1=
2ON; //This SHT0_0 is not correct, I change this value several times only t=
est. ADC12CTL1 =3D SHP; ADC12IE =3D 0x01; ADC12CTL0 |=3D ENC;What the corre=
ct configuration for great speed?Alessandro________________________________=
__________________________Cansado de espa=E7o para s=F3 50 fotos? Conhe=E7a=
o Spaces, o site de relacionamentos com at=E9 6,000 fotos!http://www.amigo=
sdomessenger.com.br[Non-text portions of this message have been removed] __=
________________________________________________________Your PC, mobile pho=
ne, and online services work together like never before.http://clk.atdmt.co=
m/MRT/go/108587394/direct/01/[Non-text portions of this message have been r=
emoved]=20
_________________________________________________________________
Cansado de espa=E7o para s=F3 50 fotos? Conhe=E7a o Spaces, o site de relac=
ionamentos com at=E9 6,000 fotos!
http://www.amigosdomessenger.com.br
[Non-text portions of this message have been removed]
------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: ADC Sample Rate - Onestone - Aug 8 8:00:45 2008
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...@yahoogroups.comFrom: 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ço para só 50 fotos? Conheça o Spaces, o site de relacionamentos com até 6,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/
>
>[Non-text portions of this message have been removed]
>------------------------------------

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
RE: ADC Sample Rate - Alesandro Correa - Aug 8 8:31:51 2008
ok,
=20
I used ane channel, internal ADC oscillator Clock.
=20
Others configs:
=20
DCOCTL =3D CALDCO_16MHZ;
BCSCTL1 =3D CALBC1_16MHZ;
=20
P1OUT =3D 0;
P4OUT =3D 0;P4DIR =3D 0xFF;
P1DIR =3D 0xFF;
P3DIR =3D BIT5;
P6SEL |=3D BIT1;// P6.0 ADC option select=20=20
ADC12CTL0 =3D SHT0_2 + SHT1_2 + ADC12ON;//old configuration
ADC12CTL1 =3D SHP;
ADC12IE =3D 0x01;
ADC12CTL0 |=3D ENC;
=20
=20
=20
tks
To: m...@yahoogroups.comFrom: o...@bigpond.net.auDate: Fri, 8 Aug 200=
8 21:29:34 +0930Subject: Re: [msp430] ADC Sample Rate
What about the rest of the configuration? SHT1 and SHT0 only set up the sam=
ple and hold time as a number of sample clocks. Where are you setting the s=
ample clock? this is what actually contrls the conversion rate. Conversion =
time =3D (sample and hold time + conversion time) * number of channels. you=
haven't set up the operating mode, start channel, or anything else of rele=
vance. this is well documented in the user guide. ADC12CTL1 is used to sele=
ct the clock source, and set the clock divider. Tsample is given in the dat=
a sheet as ~1200nsecs, Tconvert using the internal ADC12 oscillator is give=
n as 2.06 to 3.51usecs. Tconvert using an external clock source such as ACL=
K, SMCLK or MCLK is 13 x the clock period.These thingsd easily run at 200ks=
ps, 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.> >I=B4m not obtain speeds o=
ver 37ksps.> >My configs:> > ADC12CTL0 =3D SHT0_0 + ADC12ON; //This SHT0_0 =
is not correct, I change this value several times only test. ADC12CTL1 =3D =
SHP; ADC12IE =3D 0x01; ADC12CTL0 |=3D ENC;> >What the correct configuration=
for great speed?> >Alessandro>____________________________________________=
______________>Cansado de espa=E7o para s=F3 50 fotos? Conhe=E7a o Spaces, =
o site de relacionamentos com at=E9 6,000 fotos!>http://www.amigosdomesseng=
er.com.br>>[Non-text portions of this message have been removed]>>>--------=
---------------------------->>>>

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
Re: ADC Sample Rate - Onestone - Aug 8 15:00:12 2008
Ok, you're obviously manually triggering the samples since you haven't=20
set up the sequencer. This makes your sampling wholly dependant upon the=20
interrupt handler, which is likley to be much slower in c than asm,=20
this for one will slow you down. The way to get the highest conversion=20
speeds is to use consecutive samples of the same pin, and absolute=20
minimalist interrupt handlers. C usually isn't very good at this, often=20
the interrupt overhead with C is quite high, ie the amount of data=20
stacked on entry and exit is often higher than would be the case with=20
assembler. The ADC itself will run slightly faster than 200ksps, but=20
with data handling this slows down. DMA helps with the data transfer,=20
but it isn't too hard to get 200ksps without DMA, the 149 for example=20
does this easily.
Cheers
Al
Alesandro Correa wrote:
>ok,
>=20
>I used ane channel, internal ADC oscillator Clock.
>=20
>Others configs:
>=20
>DCOCTL =3D CALDCO_16MHZ;
>BCSCTL1 =3D CALBC1_16MHZ;
>=20
>P1OUT =3D 0;
>P4OUT =3D 0;P4DIR =3D 0xFF;
>P1DIR =3D 0xFF;
>P3DIR =3D BIT5;
>P6SEL |=3D BIT1;// P6.0 ADC option select=20=20
>ADC12CTL0 =3D SHT0_2 + SHT1_2 + ADC12ON;//old configuration
>ADC12CTL1 =3D SHP;
>ADC12IE =3D 0x01;
>ADC12CTL0 |=3D ENC;
>=20
>=20
>=20
>tks
>
>To: m...@yahoogroups.comFrom: o...@bigpond.net.auDate: Fri, 8 Aug 20=
08 21:29:34 +0930Subject: Re: [msp430] ADC Sample Rate
>What about the rest of the configuration? SHT1 and SHT0 only set up the sa=
mple 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 =3D (sample and hold time + conversion time) * number of channels. yo=
u haven't set up the operating mode, start channel, or anything else of rel=
evance. this is well documented in the user guide. ADC12CTL1 is used to sel=
ect the clock source, and set the clock divider. Tsample is given in the da=
ta sheet as ~1200nsecs, Tconvert using the internal ADC12 oscillator is giv=
en as 2.06 to 3.51usecs. Tconvert using an external clock source such as AC=
LK, SMCLK or MCLK is 13 x the clock period.These thingsd easily run at 200k=
sps, 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.> >I=B4m not obtain speeds =
over 37ksps.> >My configs:> > ADC12CTL0 =3D SHT0_0 + ADC12ON; //This SHT0_0=
is not correct, I change this value several times only test. ADC12CTL1 =3D=
SHP; ADC12IE =3D 0x01; ADC12CTL0 |=3D ENC;> >What the correct configuratio=
n for great speed?> >Alessandro>___________________________________________=
_______________>Cansado de espa=E7o para s=F3 50 fotos? Conhe=E7a o Spaces,=
o site de relacionamentos com at=E9 6,000 fotos!>http://www.amigosdomessen=
ger.com.br>>[Non-text portions of this message have been removed]>>>-------=
----------------------------->>>>

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )
RE: ADC Sample Rate - Alesandro Correa - Aug 11 15:55:42 2008
anyone have a example? any speed above of 100ksps?
=20
tks.
=20
Alessandro
To: m...@yahoogroups.comFrom: o...@bigpond.net.auDate: Sat, 9 Aug 200=
8 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 interr=
upt 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 hand=
lers. 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 h=
igher than would be the case with assembler. The ADC itself will run slight=
ly faster than 200ksps, but with data handling this slows down. DMA helps w=
ith the data transfer, but it isn't too hard to get 200ksps without DMA, th=
e 149 for example does this easily.CheersAlAlesandro Correa wrote:>ok,> >I =
used ane channel, internal ADC oscillator Clock.> >Others configs:> >DCOCTL=
=3D CALDCO_16MHZ;>BCSCTL1 =3D CALBC1_16MHZ;> >P1OUT =3D 0;>P4OUT =3D 0;P4D=
IR =3D 0xFF;>P1DIR =3D 0xFF;>P3DIR =3D BIT5;>P6SEL |=3D BIT1;// P6.0 ADC op=
tion select >ADC12CTL0 =3D SHT0_2 + SHT1_2 + ADC12ON;//old configuration>AD=
C12CTL1 =3D SHP;>ADC12IE =3D 0x01;>ADC12CTL0 |=3D ENC;> > > >tks>>>>To: msp=
4...@yahoogroups.comFrom: o...@bigpond.net.auDate: Fri, 8 Aug 2008 21:29=
:34 +0930Subject: Re: [msp430] ADC Sample Rate>>>>>What about the rest of t=
he configuration? SHT1 and SHT0 only set up the sample and hold time as a n=
umber of sample clocks. Where are you setting the sample clock? this is wha=
t actually contrls the conversion rate. Conversion time =3D (sample and hol=
d time + conversion time) * number of channels. you haven't set up the oper=
ating mode, start channel, or anything else of relevance. this is well docu=
mented 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, T=
convert 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 stu=
dy 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 a=
t 16MHz with DCO clock.> >I=B4m not obtain speeds over 37ksps.> >My configs=
:> > ADC12CTL0 =3D SHT0_0 + ADC12ON; //This SHT0_0 is not correct, I change=
this value several times only test. ADC12CTL1 =3D SHP; ADC12IE =3D 0x01; A=
DC12CTL0 |=3D ENC;> >What the correct configuration for great speed?> >Ales=
sandro>__________________________________________________________>Cansado d=
e espa=E7o para s=F3 50 fotos? Conhe=E7a o Spaces, o site de relacionamento=
s com at=E9 6,000 fotos!>http://www.amigosdomessenger.com.br>>[Non-text por=
tions of this message have been removed]>>>--------------------------------=
---->>>>

(You need to be a member of msp430 -- send a blank email to msp430-subscribe@yahoogroups.com )