> So, if ADC12_TIMERA_ENABLED is set to false, is it possible to perform
> multiple conversions? I understand that it won't be possible.

If  ADC12_TIMERA_ENABLED is undefined, then multiple conversions are
possible only if the period is zero (then the ADC channel is sampled
as fast as possible), e.g. when in ReadStream.read(uint32_t usPeriod)
the usPeriod=0 or when you pass a "jiffies=0" parameter to the HAL
interfaces. Otherwise TimerA is required, and the command will fail
(in the newest CVS version).

Jan

>
> Thanks,
>
> Xavi
>
> On Sun, Nov 9, 2008 at 11:26 PM, Jan Hauer <[EMAIL PROTECTED]> wrote:
>>
>> TimerA is used as clock source for the sampcon signal, which controls
>> the sample period/frequency (see Sect. 17.2.5 of msp430 user guide).
>> TimerA is only used if the client requests multiple/repeated sampling
>> - if the client requests a single sample (e.g. through Read.read()),
>> then TimerA is not used. You can completely disable the use of TimerA
>> within the ADC code if you undefine ADC12_TIMERA_ENABLED (see
>> Msp430Adc12.h). But I just noticed that in this case the warning still
>> appears - I'll fix this in CVS tomorrow.
>>
>> Jan
>>
>>
>> On Fri, Nov 7, 2008 at 2:33 PM, Xavier Orduña <[EMAIL PROTECTED]>
>> wrote:
>> > Hi All,
>> >
>> > When compiling a program that uses msp430 ADC a "using timerA" warning
>> > is
>> > thrown. It is possible to use msp430 from TinyOS without using TimerA?
>> >
>> > In fact, why TimerA is used?
>> >
>> > Thanks,
>> >
>> > Xavi
>> >
>> >
>> >
>> > _______________________________________________
>> > Tinyos-help mailing list
>> > [email protected]
>> > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>> >
>
>
>
> --
> Xavier Orduña
> CTO
>
> m: [+34] 615 475 065
> @: [EMAIL PROTECTED]
>
> Dexma
>
> Riu de l'or 35
> ES-08034 Barcelona
> t/f: [+34] 93 280 19 18
> w: www.dexmatech.com
>

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to