Po-kai,

The unfortunate answer is that if you are using the radio, you are not
going to have great success or a very good time using the I2C as
digital output.  The best you will get is to send output signals or
read input signals while the radio is not in use.  When there is data
transfer between the the radio and MCU, not only can you not use those
pins, those pins will be actuated with SPI protocol signals.

Usinh TinyOS 1.1.15, you'd have to use the BusArbitration component to
acquire those pins and block the radio from using them. 
BusArbitration is hard to use correctly, and we've fixed it with
Resources (from TinyOS 2.x) in Moteiv Boomerang.

Cory

On 4/17/06, Po-kai Chen <[EMAIL PROTECTED]> wrote:
> Thanks Cory for responding so fast. The reason I need to use those pins is
> because all the other pins are already in use. Furthermore, I can't
> rearrange the pins because the pcb board is already designed and made. I do
> not need interrupt capability on these pins.
>
> Po-kai
>
>
> On 4/17/06, Cory Sharp <[EMAIL PROTECTED]> wrote:
> > Po-kai,
> >
> > The obligatory first question: instead of using pins A6 and A8 ("A"
> > for "10-pin header", "B" for "6-pin header"), is there a reason you
> > can't use pins A7 or A10 (GIO0, GIO1) or pins B3 or B4 (GIO2, GIO3)?
> >
> > Also, you only need the GIO (MSP430 P2) lines if you want to receive
> > interrupts on the MSP430.  If you only need digital IO without
> > interrupt capability, you can also use pins A2, A3, A4, A5, B1, and
> > B2.
> >
> > Best,
> > Cory
> >
> > On 4/17/06, Po-kai <[EMAIL PROTECTED]> wrote:
> > > The gio4 and gio5 pins are shared with the i2c pins on the telos mote. I
> > > can't figure out how to those pins as general io pins. Can someone give
> me
> > > some sample code that lets me turn on and off these pins using TinyOS
> 1.1.15
> > > (not using Boomerang yet)? Also, I heard those lines are also shared
> with
> > > the radio. Any hints and/or suggestions as to how to manage the usage of
> > > those pins? I am not using any external i2c devices; however, I would be
> > > using the radio.
> > >
> > > Thanks
> > >
> > > Po-kai Chen
> > >
> > > _______________________________________________
> > > Tinyos-help mailing list
> > > [email protected]
> > >
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
> > >
> >
>
>

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

Reply via email to