selectIOFunc() seems to be the thing in T1 that makes
each pin do it's Digital IO function. It may be redundant,
and it certainly isn't documented anywhere that I found...

As to the "shortage on connector pins", I agree. But that
doesn't explain the utility of being able to short two
controller lines together to one external I/O pin...

I'd say if it works, you are doing it the right way.

MS



André Miguel de Almeida Marrão Rodrigues wrote:
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 [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

Reply via email to