Hi Dean,

I assume that you are talking about the UART0.  The peripheral that
controls the UART0 is shared; when UART is not active, the UART0 pins
behave as general IO. By default process of initialization of pins
within TinyOS pins, the "unused" signals are preferably configured as
outputs, outputting a low.   That is why you're seeing the idle low.
When the UART peripheral is becomes active, it begins to conform to
the UART protocol specifications - before transmitting the start bit,
it pulls the line high.

You can make the whole system conform to the UART protocol
specifications by configuring the UART0 TX pin to be output and high
in the GPIO mode.  TO do that, put the following code in your
application initialization routine:

     TOSH_MAKE_UTXD0_OUTPUT();
     TOSH_SET_UTXD0_PIN();
Best regards,
Rob

Robert Szewczyk
Moteiv Corporation


On 2/8/07, Dean Kleissas <[EMAIL PROTECTED]> wrote:
I'm trying to interface a Tmote sky module to a PIC18F2431.  The UART on the
mote seems to be configured idle low, active high and with two stop bits.
This is not compatible with the PIC which is idle high.  Has anyone ever had
any success with this or know how to solve this problem?  Should I2C be used
instead of uart?  If so is there any sample code on the web to do resource
management properly since the radio and I2C buses are shared.  Any help
would be really appreciated.

Thanks,

Dean
University of Rochester

_________________________________________________________________
Valentine's Day -- Shop for gifts that spell L-O-V-E at MSN Shopping
http://shopping.msn.com/content/shp/?ctId=8323,ptnrid=37,ptnrdata=24095&tcode=wlmtagline

_______________________________________________
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