<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=5&amp;t=2594" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2008-05-31T09:32:28+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=2594</id>
<entry>
<author><name><![CDATA[bergere]]></name></author>
<updated>2008-05-31T09:32:28+01:00</updated>
<published>2008-05-31T09:32:28+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16089#p16089</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16089#p16089"/>
<title type="html"><![CDATA[Working without Robot Terminal]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16089#p16089"><![CDATA[
OK Thx <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":-)" title="Smile" /><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=818">bergere</a> — Sat May 31, 2008 9:32 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-05-31T07:54:07+01:00</updated>
<published>2008-05-31T07:54:07+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16088#p16088</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16088#p16088"/>
<title type="html"><![CDATA[Working without Robot Terminal]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16088#p16088"><![CDATA[
I stand corrected on my original comment.<br /><br />The 16-bit logic I remembered is from the ATMega128 reference manual in relation to the timers.<br /><br />As the CPU internally uses a temporary register per timer you have to do the read/writes in a specific order, and frustratingly it's not even the same order <img src="http://forum.robosavvy.com/images/smilies/icon_biggrin.gif" alt=":D" title="Very Happy" /><br /><br />I quote from the reference guide:<br /><br /><span style="font-style: italic">To do a 16-bit write, the high byte must be written before the low byte. For a 16-bit read, the low byte must be read before the high byte.</span><br /><br />In all cases I strongly recommend 16-bit operations for 16-bit registers when using C, that way the compiler has to get it right for the context you're setting the register in.<br /><br />So apologies for the mis-guidance earlier, and yes you're right in that it hardly matters if the serial interface isn't running, but it is a bad habit to get into.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Sat May 31, 2008 7:54 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[le fatumbi]]></name></author>
<updated>2008-05-30T17:33:12+01:00</updated>
<published>2008-05-30T17:33:12+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16077#p16077</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16077#p16077"/>
<title type="html"><![CDATA[Working without Robot Terminal]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16077#p16077"><![CDATA[
<blockquote><div><cite>bergere wrote:</cite><br />Are you sure that i have to change first the Low Register?<br />Because in Bioloid User Guide on Page 133 is used:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>UBRR0H = 0; UBRR0L = bBaudrate;<br /></code></dd></dl><br /></div></blockquote><br />I have only 125 pages in &quot;my&quot; Bioloid User Guide  <img src="http://forum.robosavvy.com/images/smilies/icon_confused.gif" alt=":?" title="Confused" /> <br /><br />But I had no problem doing that way... chance ?<br /><br />I'm not sure it's important while Rx &amp; Tx are not yet enabled.<br />And, as default value of high register is always 0, you change nothing in fact when you write there.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1012">le fatumbi</a> — Fri May 30, 2008 5:33 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bergere]]></name></author>
<updated>2008-05-30T11:43:00+01:00</updated>
<published>2008-05-30T11:43:00+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16073#p16073</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16073#p16073"/>
<title type="html"><![CDATA[Working without Robot Terminal]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16073#p16073"><![CDATA[
Are you sure that i have to change first the Low Register?<br />Because in Bioloid User Guide on Page 133 is used:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>UBRR0H = 0; UBRR0L = bBaudrate;<br /></code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=818">bergere</a> — Fri May 30, 2008 11:43 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2008-05-30T07:44:12+01:00</updated>
<published>2008-05-30T07:44:12+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16071#p16071</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16071#p16071"/>
<title type="html"><![CDATA[Working without Robot Terminal]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16071#p16071"><![CDATA[
Always always always change the low (L) register <span style="font-weight: bold">before</span> the high (H) register.  The register locking is done in hardware so that works.  Incidentally if you do a 16-bit assignment the compiler knows to change them (or read them) in the right order to avoid problems.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Fri May 30, 2008 7:44 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bergere]]></name></author>
<updated>2008-05-25T19:36:39+01:00</updated>
<published>2008-05-25T19:36:39+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16025#p16025</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16025#p16025"/>
<title type="html"><![CDATA[Working without Robot Terminal]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16025#p16025"><![CDATA[
Oh THX i will take a look at this. But before a little question to the following code. The problem is that UDR0 doesn´t work. UDR1 is working but not UDR0.<br /><br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>#include &lt;avr&gt;<br /><br />typedef unsigned char byte;<br /><br /><br />void printHex&#40;byte bSentData&#41;;<br />void printHex2&#40;byte bSentData&#41;;<br />void TxD80&#40;byte bTxdData&#41;;<br />void TxD81&#40;byte bTxdData&#41;;<br /><br /><br />void printHex&#40;byte bSentData&#41;//UDR1<br />&#123;<br />  byte bTmp;<br /><br />  bTmp =&#40;&#40;byte&#41;&#40;bSentData&gt;&gt;4&#41;&amp;0x0f&#41; + &#40;byte&#41;'0';<br />  if&#40;bTmp &gt; '9'&#41; bTmp += 7;<br />  TxD81&#40;bTmp&#41;;<br />  bTmp =&#40;byte&#41;&#40;bSentData &amp; 0x0f&#41; + &#40;byte&#41;'0';<br />  if&#40;bTmp &gt; '9'&#41; bTmp += 7;<br />  TxD81&#40;bTmp&#41;;<br />&#125;<br /><br />void printHex2&#40;byte bSentData&#41;//UDR0<br />&#123;<br />  byte bTmp;<br /><br />  bTmp =&#40;&#40;byte&#41;&#40;bSentData&gt;&gt;4&#41;&amp;0x0f&#41; + &#40;byte&#41;'0';<br />  if&#40;bTmp &gt; '9'&#41; bTmp += 7;<br />  TxD80&#40;bTmp&#41;;<br />  bTmp =&#40;byte&#41;&#40;bSentData &amp; 0x0f&#41; + &#40;byte&#41;'0';<br />  if&#40;bTmp &gt; '9'&#41; bTmp += 7;<br />  TxD80&#40;bTmp&#41;;<br />&#125;<br /><br />void TxD80&#40;byte bTxdData&#41;<br />&#123;<br />  while&#40;!&#40;bit_is_set&#40;UCSR0A,5&#41;&#41;&#41;;<br />  UDR0 = bTxdData;<br />&#125;<br /><br /><br />void TxD81&#40;byte bTxdData&#41;<br />&#123;<br />  while&#40;!&#40;bit_is_set&#40;UCSR1A,5&#41;&#41;&#41;;<br />  UDR1 = bTxdData;<br />&#125;<br /><br /></code></dd></dl><br /><br />I was a little bit surprised that my UDR1 function works without any initialise. For my UDR0 function I wrote a little initialisation function:<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>#define FOSC 16000000// Clock Speed<br />#define BAUD 57600<br />#define MYUBRR FOSC/16/BAUD-1<br /><br />void USART_Init&#40; unsigned int ubrr &#41;<br />&#123;<br />/* Set baud rate */<br />UBRR0H = &#40;unsigned char&#41;&#40;ubrr&gt;&gt;8&#41;;<br />UBRR0L = &#40;unsigned char&#41;ubrr;<br />/* Enable receiver and transmitter */<br />UCSR0A = &#40;1&lt;&lt;RXEN&#41;|&#40;1&lt;&lt;TXEN&#41;;<br />/* Set frame format: 8data, 2stop bit */<br />UCSR0C = &#40;1&lt;&lt;USBS&#41;|&#40;3&lt;&lt;UCSZ0&#41;;<br /></code></dd></dl><br /><br />This function change nothing. After that i looked in the iom128.h because of my Atmega128(L).<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>/* USART1 I/O Data Register */<br />#define UDR1      _SFR_MEM8&#40;0x9C&#41;<br /><br /><br />/* USART0 I/O Data Register */<br />#define UDR0      _SFR_IO8&#40;0x0C&#41;<br /></code></dd></dl><br /><br />But i couldn´t say what this means. I just see that they are different <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":-)" title="Smile" /><br /><br />I hope U can help me <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":-)" title="Smile" /><br />(Maybe its just a mistake to send data on UDR0).<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=818">bergere</a> — Sun May 25, 2008 7:36 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[AlphA]]></name></author>
<updated>2008-05-25T16:34:32+01:00</updated>
<published>2008-05-25T16:34:32+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16022#p16022</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16022#p16022"/>
<title type="html"><![CDATA[Working without Robot Terminal]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16022#p16022"><![CDATA[
That's pretty much what my wireless control script does.<br /><!-- m --><a class="postlink" href="http://robosavvy.com/forum/viewtopic.php?t=2424">http://robosavvy.com/forum/viewtopic.php?t=2424</a><!-- m --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=869">AlphA</a> — Sun May 25, 2008 4:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[bergere]]></name></author>
<updated>2008-05-25T16:04:20+01:00</updated>
<published>2008-05-25T16:04:20+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16021#p16021</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16021#p16021"/>
<title type="html"><![CDATA[Working without Robot Terminal]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2594&amp;p=16021#p16021"><![CDATA[
I want to send Chars to the CM5 without Robot Terminal.<br />Do somebody wrote such a software which i can use?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=818">bergere</a> — Sun May 25, 2008 4:04 pm</p><hr />
]]></content>
</entry>
</feed>