Assuming that you are not planing to use ADC3 for anything,
which you probably can't because it isn't connected to
the outside world other than that 10pin anyway, you should
just us it for your GIO bit. I don't know offhand which way
the pins default, but with your short at R14 you may have
both GIO0 and ADC3 set as outputs and competing with each other.
Unless you are using the ADC component the ADC inputs are not
configured to do anything, so there is nothing to disable.
I am entirely clueless as to why those R14-like shorting
options exist as all they do is tie two IO pins together...
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++):
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 [EMAIL PROTECTED]:tmote
<mailto:[EMAIL PROTECTED]:tmote>"
...
[EMAIL PROTECTED]:115200 <mailto:[EMAIL PROTECTED]:115200>: packet too long
[EMAIL PROTECTED]:115200 <mailto:[EMAIL PROTECTED]:115200>: resynchronising
[EMAIL PROTECTED]:115200 <mailto:[EMAIL PROTECTED]:115200>: packet too long
[EMAIL PROTECTED]:115200 <mailto:[EMAIL PROTECTED]:115200>: resynchronising
....... <mailto:[EMAIL PROTECTED]: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
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help