<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>For what it is worth.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I was having difficulty with baud rate
selection.The only way I could get it to work was to </FONT><FONT
face=Arial size=2>change the type for baud_rate_select in th UARTDCB and then
modify UartAvrSetSpeed(allows for rates slower than 4800):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>static int UartAvrSetSpeed(UARTDCB *dcb, u_long
baud, u_char devnum)<BR>{<BR> <BR>
/*<BR> * Refined calculation provided by Robert
Hildebrand.<BR> */<BR>
dcb->dcb_baudSelect = (u_short)(((((2 * NutGetCpuClock()) / (baud * 16L)) +
1) / 2) - 1);<BR> </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>#ifdef UBRR1L<BR>
if(devnum)<BR> UBRR1L =
dcb->dcb_baudSelect;<BR>
else<BR>#endif<BR> //outp(dcb->dcb_baudSelect,
UBRR);<BR> <BR>
outp((u_char)(dcb->dcb_baudSelect),
UBRR0L);<BR> UBRR0H =
(u_char)(dcb->dcb_baudSelect >> 8);<BR>
<BR> <BR> return 0;<BR>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Anyway I am a newbie, so if something looks wrong
with this please let me know.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Mike B.</FONT></DIV></BODY></HTML>