Hi,

Yes, here is the code.

I know that this kind of TimerA access violates all rules in TinyOS,
remember to comment the line related in Msp430ADC.h (in tos/chips/msp430).

This example outputs a sine wave in DAC1 while make a capture in another
ADC. In fact it works for msp430F2617. I think there are some changes since
msp430F1611 (one in tmote mini, telosb and other platforms).

Have Fun.

Xavi

On Fri, Nov 14, 2008 at 3:19 AM, Kevin Ong <[EMAIL PROTECTED]> wrote:

> I think i was unclear in the previous reply....U mean u wrote 10 lines of
> TinyOS code and you managed to get a sine wave on your DAC?
>
> ------------------------------
> *From:* Xavier Orduña <[EMAIL PROTECTED]>
> *To:* Kevin Ong <[EMAIL PROTECTED]>
> *Cc:* tinyos-help@millennium.berkeley.edu
> *Sent:* Thursday, 13 November 2008 10:33:36
>
> *Subject:* Re: [Tinyos-help] DAC code for Telos platform
>
> Dac is really simple to use using msp430 registers.
>
> If you want to do something simple, maybe you use this way.
>
> Just take a look to msp430 datasheet or msp430 code examples from TI.
>
> With just 10 lines (and DMA support from tinyos) I've got a nice sinus on
> my DAC.
>
> Xavi
>
> On Thu, Nov 13, 2008 at 6:00 AM, Kevin Ong <[EMAIL PROTECTED]> wrote:
>
>> Renjie, cheers for your help....
>>
>> Last 2 questions, is it correct for me to assume that the
>> boomerange(motiev) DAC code is currently for TinyOS 1.x....ya?
>>
>> Lastly, have you tried this code yourself?Perhaps everyone could learn
>> from your experience especially for future seekers of knowledge concerning
>> this problem.
>>
>>
>> ------------------------------
>> *From:* renjie huang <[EMAIL PROTECTED]>
>> *To:* Kevin Ong <[EMAIL PROTECTED]>
>> *Cc:* tinyos-help@millennium.berkeley.edu
>> *Sent:* Thursday, 13 November 2008 9:42:50
>> *Subject:* Re: [Tinyos-help] DAC code for Telos platform
>> ------------------------------
>> *From:* renjie huang <[EMAIL PROTECTED]>
>> *To:* Kevin Ong <[EMAIL PROTECTED]>
>> *Cc:* tinyos-help@millennium.berkeley.edu
>> *Sent:* Thursday, 13 November 2008 9:42:50
>>
>> *Subject:* Re: [Tinyos-help] DAC code for Telos platform
>>
>> HI
>>
>> The related files are attached. Hope it will help.
>>
>> On Wed, Nov 12, 2008 at 5:20 PM, Kevin Ong <[EMAIL PROTECTED]> wrote:
>>
>>> Hi
>>>
>>> Can you be more specific? I can't seem to locate the code that you had
>>> mentioned.....Please assist...Tks
>>>
>>> ------------------------------
>>> *From:* renjie huang <[EMAIL PROTECTED]>
>>> *To:* Kevin Ong <[EMAIL PROTECTED]>
>>> *Cc:* tinyos-help@millennium.berkeley.edu
>>> *Sent:* Thursday, 13 November 2008 8:06:25
>>> *Subject:* Re: [Tinyos-help] DAC code for Telos platform
>>>
>>> Hi
>>>
>>>  DAC is supported in  boomerange(moteiv).  You may port it to T2.
>>>
>>> On Wed, Nov 12, 2008 at 1:05 AM, Kevin Ong <[EMAIL PROTECTED]> wrote:
>>>
>>>>  Hi everyone, has anyone written code to use the DAC interface for the
>>>> Telos platform in TinyOS 2.x?
>>>>
>>>> - Kev
>>>>
>>>> ------------------------------
>>>> New Email addresses available on Yahoo!
>>>> <http://sg.rd.yahoo.com/sg/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/sg/>
>>>> Get the Email name you've always wanted on the new @ymail and
>>>> @rocketmail.
>>>> Hurry before someone else does!
>>>>
>>>> _______________________________________________
>>>> Tinyos-help mailing list
>>>> Tinyos-help@millennium.berkeley.edu
>>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>>
>>>
>>>
>>>
>>> --
>>> Renjie Huang
>>> Sensorweb Research Laboratory
>>> http://sensorweb.vancouver.wsu.edu/
>>> Washington State University
>>>
>>> ------------------------------
>>>  Get your preferred Email name!
>>> <http://sg.rd.yahoo.com/sg/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/sg/>
>>> Now you can @ymail.com and @rocketmail.com.
>>>
>>> _______________________________________________
>>> Tinyos-help mailing list
>>> Tinyos-help@millennium.berkeley.edu
>>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>>
>>
>>
>>
>> --
>> Renjie Huang
>> Sensorweb Research Laboratory
>> http://sensorweb.vancouver.wsu.edu/
>> Washington State University
>>
>> ------------------------------
>>  Try the new Yahoo! Messenger 9.0
>> <http://sg.rd.yahoo.com/sg/messenger/maxwell/*http://sg.messenger.yahoo.com/>
>> Now with all you love about messenger and more!
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> 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
>
> ------------------------------
>  New Email addresses available on Yahoo!
> <http://sg.rd.yahoo.com/sg/mail/domainchoice/mail/signature/*http://mail.promotions.yahoo.com/newdomains/sg/>
> Get the Email name you've always wanted on the new @ymail and @rocketmail.
> Hurry before someone else does!
>



-- 
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

Attachment: WatermarkC.nc
Description: Cdf file

Attachment: WatermarkP.nc
Description: Cdf file

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to