I am not sure if this will help you but you should look at the example code I checked into the contrib section of CVS. (tinyos-1.x/contrib/SharedUSART/)
 
I created the HPLUART0C and HPLUART0M to allow the HPLUART interface to be used with USART0.  This will give you one byte at a time write/read capability to the UART0.  You can set the baud rate with #define UART0_BAUDRATE 9600.
 
I wrote the TestUSART application to receive bytes from the radio and send them to a serial device on USART0.  You can look at this application to see how HPLUART0C is wired and used.  If you are not using the SPI and I2C modes then you can start off you own application that does not use bus arbitration.
 
Let me know if you have any questions about this example code or need any clarifications.
 
Regards,
Chris
 
 
On 3/23/06, Chris Morrison <[EMAIL PROTECTED]> wrote:
I've searched through the archives and can't find a definitive answer to
my question so I am hoping someone here can help.

I'm looking to connect a display up to my mote through the serial ports
that are on the expansion pins and I have two problems,
1. Can I use the genericComm to send to this UART or is it only the USB
port that can use the genericComm?
2. If I can use the genericComm how do i change the baud rate from
57600bps to 9600bps?  How do i change the destination address so rather
than going through the USB port it goes through the UART (at the moment
i just use the line

call Send.send( TOS_UART_ADDR,sizeof(IntMsg2),&data)

to send to the UART but that sends over the USB instead of the expansion
UART.

Thanks in advance,

Chris
_______________________________________________
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