Hi

If all you want is to output 0 or 1 on pin 10, I would say that you just have 
to use port 6.3. In that case you do not neet to use any resistors.

But Eric could confirm (or not) my opinion.

Next, study one of the available device drivers to learn how to select the port 
for IO and how to set/clr the bit.

Regards,

André

  ----- Original Message ----- 
  From: Mubashir Rehmani 
  To: Eric Decker 
  Cc: [email protected] 
  Sent: Wednesday, February 29, 2012 9:23 AM
  Subject: Re: [Tinyos-help] ADC port


  Thanks Eric for your answer.

  In fact, in the telosb motive data sheet, 
  http://moss.csc.ncsu.edu/~mueller/rt/rt11/readings/projects/g4/datasheet.pdf
  It is written on page 24 that "If expansion pin 10 (ADC3) is used for digital 
I/O instead of analog inputs, R14 must be populated with a 0 ohm resistor to 
enable the pin for digital I/O (GIO0) on the microcontroller.
  R16 must be populated with a 0 ohm resistor to enable GIO1. R14 and R16 are 
located on the top side of Telos between the USB controller and the radio."

  So, what i want to do is that i want to use the expansion pin 10 (ADC3) and 
control the I/O signals through tinyos. More precisely, i want to attach an 
electronic switch, which enables or disable an external device (antenna) with 
the signal i provide it to this expansion pin 10 (ADC3). Do you have any idea 
how to achieve this?

  Kind Regards


  On 29 February 2012 10:16, Eric Decker <[email protected]> wrote:




    On Tue, Feb 28, 2012 at 11:58 PM, Mubashir Rehmani <[email protected]> 
wrote:

      Dear All,

      I want to control the I/O of the 10-pin extension connector of (U2) of 
the Telosb mote. In fact, i want to use ADC3 and control its power level in 
order to connect the digital switch with it. Can anyone tell me how i can 
control the voltage level of this ADC3 from the tinyos code?


    you aren't understanding how this ADC stuff really works......

    ADC3 is an input to the ADC subsystem so it is nonsensical to talk about 
controlling the voltage level from the tinyos code.

    I suggest that you read the TI msp430f1611 manual in conjunction with the 
moteiv telosb schematic to understand what hardware is provided and how it 
works. 


      Please refer the pin diagram of the datasheet (page 23)
      
http://moss.csc.ncsu.edu/~mueller/rt/rt11/readings/projects/g4/datasheet.pdf

      Kind Regards

      -- 
      Mubashir Husain Rehmani




      _______________________________________________
      Tinyos-help mailing list
      [email protected]
      https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help




    -- 
    Eric B. Decker
    Senior (over 50 :-) Researcher






  -- 
  Mubashir Husain Rehmani





------------------------------------------------------------------------------


  _______________________________________________
  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