[Tinyos-help] Re: DAC on telosb
pjayarao at yahoo.com
Tue Sep 20 12:02:50 PDT 2005
Thank you very much for your help.
I downloaded your proposed DAC solutions and installed
them in appropriate places and did the make tmote
as you had in your message. Listed below is what I
get. Please let me know how to fix this syntax error.
I am using tinyos-1.1.11
mkdir -p build/telosb
compiling TestDAC12DMAC to a telosb binary
ncc -o build/telosb/main.exe
(.....bunch of lines deleted for brevity.......)
syntax error before `DAC12_0DAT'
syntax error before `DAC12_1DAT'
make: *** [exe0] Error 1
--- Joe Polastre <joe at polastre.com> wrote:
> You may want to check out this message from
> tinyos-msp430, as it is
> the "beta" version of the drivers that will make
> their way into a
> TinyOS release shortly.
> On 9/19/05, Dan Steingart <steinda at berkeley.edu>
> > I've got some DAC on telosb code working. On the
> 6 pin header, the
> > #1 and two pins are 0 and 1 respectively. I call
> it directly with
> > these lines:
> > For Pin 1 (port 0)
> > To set the pin to 0 V
> > DAC12_0CTL = DAC12IR + DAC12AMP_1; // This grounds
> the pin
> > To set the pin to some value between 0 and 2.5 V.
> > DAC12_0CTL = DAC12IR + DAC12AMP_5 + DAC12ENC; //
> Internal ref gain 1
> > DAC12_0DAT = X ;// where X is some value between 0
> and 4095
> > 4095 is 2.5 V, and 0 is 0V, the it's linearly
> related in between. I
> > find that grounding it works better than setting 0
> > To use Pin 2 (port 1) use 1CTL and 1DAT,
> respectively. If anyone
> > wants I can make a demo application for this
> > Dan
> > _______________________________________________
> > Tinyos-help mailing list
> > Tinyos-help at Millennium.Berkeley.EDU
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Tinyos-help