Jose,
Sorry, It didn't register the first time I read your question that you are wanting to use the Tmote as a slave device. If I were you, I would forget about using any of the components or interfaces available, except for reference. I would recommend taking a look at chapter 15 of the MSP430 F16xx Family User Guide (found at ti.com) which deals with I2C setup. Using that as a reference, you should be able to access registers directly to configure and read from the USART0 as I2C.
Matt
[EMAIL PROTECTED] wrote: -----To: Matthew J Whelan <[EMAIL PROTECTED]>
From: [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
Date: 06/01/2006 03:40PM
cc: [email protected]
Subject: Re: [Tinyos-help] Question about I2C
Even though I've reviewed those archives, but I have the following doubt.
In the MSP430I2CC.nc file contained the primitives for setting the operation
modes. Start is generated by the I2CPacket component, whenever read or write
is made. In the StdControl.start a call to USARTControl.setModeI2C is made
where is configurate for to work like a master. My question is in which
moment it is suitable to make the call for to configurate in slave and to
assign the OwnAddress??. After knowing clearly this, when recognizing tmote
its direction would generate a ACK immediately, and would begin the
reception?
If this is correct, these had to be processed byte to byte and which events
are generated when information is received??.
Thank you very much.
--
José Ulloa Suárez
El Jueves, 1 de Junio de 2006 14:38, Matthew J Whelan escribió:
> <FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif"
> size=2><DIV><FONT size=2><P>Jose,</P><P>You can communicate through I2C
> with external devices using Tinyos 1.x. Take a look at
> tos/platforms/MSP430/MSP430I2CPacket and
> tos/platforms/telosb/I2CPacketC & I2CPacketM. Make sure you take
> care to arbitrate the bus, since the radio chip is on the same
> USART.</P><P><FONT size=2>Regards,</FONT></P><P><FONT
> size=2>Matt</P><P></FONT></FONT><BR> </P></DIV><FONT
> color=#990099>[EMAIL PROTECTED] wrote:
> -----<BR><BR></FONT><blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT:
> 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT:
> 0px">To: [email protected]<BR>From:
> [EMAIL PROTECTED]<BR>Sent by:
> [EMAIL PROTECTED]<BR>Date: 06/01/2006
> 02:31PM<BR>Subject: [Tinyos-help] Question about I2C<BR><BR><FONT
> face="Default Monospace,Courier New,Courier,monospace" size=2 >I need to
> know if someone it's been working with the I2C protocol in the TMOTE iv,
> specifically with Tiny OS 1.1.X distribution, not in Boomerang.<BR>I need
> to connect the node in slave mode to another hardware. Somebody have a
> example or idea of how could do this ?? <BR>Thank you in advance,<BR>--
> <BR>José Ulloa Suárez<BR>Jefe Area de Desarrollo<BR>WiseConn
> S.A.<BR><BR>_______________________________________________<BR>Tinyos-help
> mailing list<BR>[email protected]<BR><A
> href="" target=blank
> >https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help<
>/A><BR></FONT></blockquote><br></FONT>
--
José Ulloa Suárez
Jefe de Desarrollo
WiseConn S.A.
_______________________________________________
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
