[Tinyos-help] gio0 problem on tmote sky
André Miguel de Almeida Marrão Rodrigues
andremiguelrodrigues at gmail.com
Tue Nov 13 14:30:26 PST 2007
Hi
I'm in T2
> Unless you are using the ADC component the ADC inputs are not
> configured to do anything, so there is nothing to disable.
I'm using the ADC for ADC0, ADC1 and ADC2.
But I'm not sure if it affects ADC3?
> I am entirely clueless as to why those R14-like shorting
> options exist as all they do is tie two IO pins together...
A shortage on connector pins?
> I have yet to fully test this, but I believe you can do the
> following to turn ADC3 into an output pin (under Boomerang,
> which seems to be TOS1.1.15++):
I manage to do that forgeting the R14 (not connected) and the gpio0 and
making
the ADC3 pin output and high. And now it's working, I didn't use
selecIOfunc because I didn't see that in GeneralIO interface.
What´s the function?
But at the end I'm not sure if it's the correct way to do it
Regards,
André
>
> in config:
> components MSP430GeneralIOM;
> PanTiltP.MStep4 -> MSP430GeneralIOM.Port63;
>
> in code (PanTiltP.nc):
> uses interface MSP430GeneralIO as MStep4; // PORT63
>
> init:
> call MStep4.makeOutput();
> call MStep4.setLow();
> call MStep4.selectIOFunc();
>
> use: call MStep4.setLow();
> call MStep4.setHigh();
>
> MS
>
> André Miguel de Almeida Marrão Rodrigues wrote:
>> Hi
>> From the specs I think I must connect the R14 pads in the tmote sky to
>> use the gio0 to output a "1" value.
>> I have connect the pads with a small piece of solded copper iron and a
>> strange behaviour appears when doing some printfs
>> using the command line: "java PrintfClient -comm serial at COM7:tmote
>> <mailto:serial at COM7:tmote>"
>> ...
>> serial at COM7:115200 <mailto:serial at COM7:115200>: packet too long
>> serial at COM7:115200 <mailto:serial at COM7:115200>: resynchronising
>> serial at COM7:115200 <mailto:serial at COM7:115200>: packet too long
>> serial at COM7:115200 <mailto:serial at COM7:115200>: resynchronising
>> ....... <mailto:serial at COM7:115200>
>> The piece of code that I use is:* *
>>
>> *uses interface* GeneralIO *as* mma7260Sleep;
>>
>> ......
>> * *
>>
>> *call* mma7260Sleep.makeOutput();
>>
>> *call* mma7260Sleep.set();
>>
>> I thinl the wiring is ok because it works for gio03.
>>
>> Should I add some extra code because usally position 10 on the connector
>> is for ADC3?
>>
>> Should I disable ADC functionaly on that pin? How?
>>
>> Best regards,
>>
>> André Rodrigues
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Tinyos-help mailing list
>> Tinyos-help at Millennium.Berkeley.EDU
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
More information about the Tinyos-help
mailing list