<?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=5922" />

<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>2010-03-31T09:36:27+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=5922</id>
<entry>
<author><name><![CDATA[amboaco]]></name></author>
<updated>2010-03-31T09:36:27+01:00</updated>
<published>2010-03-31T09:36:27+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26160#p26160</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26160#p26160"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26160#p26160"><![CDATA[
thanks all and special thanks for  &quot;i-Bot&quot;<br /><br />I have completed problem my program. Your are right., the problem is delay-time in routine interupsi too long. <br /><br />amboaco...<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1960">amboaco</a> — Wed Mar 31, 2010 9:36 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2010-03-30T19:25:13+01:00</updated>
<published>2010-03-30T19:25:13+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26152#p26152</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26152#p26152"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26152#p26152"><![CDATA[
Interrupt routine have to be short if you want to avoid losing data. This is why I asked about the LCD routines. The long delay you now have in the interrupt routine is crazy. Take all LCD printing and delays out of the interrupt routine. I you can't get out and back into the interrupt routine in less than 100 microseconds, you will lose data.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Tue Mar 30, 2010 7:25 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amboaco]]></name></author>
<updated>2010-03-30T15:02:33+01:00</updated>
<published>2010-03-30T15:02:33+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26147#p26147</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26147#p26147"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26147#p26147"><![CDATA[
The new my program:<br />--------------------------------<br />void main(void)<br />{<br />// Communication Parameters: 8 Data, 1 Stop, No Parity<br />// USART Receiver: On<br />// USART Transmitter: On<br />// USART Mode: Asynchronous<br />// USART Baud Rate: 115200<br />UCSRA=0x00;<br />UCSRB=0x98; //98<br />UCSRC=0x86;<br />UBRRH=0x00;<br />UBRRL=0x05;<br /><br />PORTA=0x00; DDRA=0x00;<br />PORTB=0x00; DDRB=0x00;<br />PORTC=0x00;DDRC=0x00;<br />PORTD=0x00;DDRD=0x00;<br /><br />lcd_init(16);<br /><br />while (1)<br />     {<br />     i = 0;<br />     dp_kirim();<br />     temperatur();<br />     #asm(&quot;sei&quot;)<br />     dp_terima();<br />     if ( i &gt; 6)<br />     {<br />     lcd_clear();    <br />     lcd_gotoxy(0,0);<br />     sprintf(buf1,&quot;%x %x %x %x %x %x %x&quot;,datarx[1],datarx[2],datarx[3],datarx[4],datarx[5],datarx[6],datarx[7]);<br />     lcd_puts(buf1);<br />     };<br />     };<br />}<br /><br />--------------------<br /><br />and routin receiver interupsi is<br /><br />----------------<br />//USART Receiver interrupt service routine<br />interrupt [USART_RXC] void usart_rx_isr(void)<br />{<br />lcd_gotoxy(0,0);<br />lcd_putsf(&quot;cek&quot;);<br />i++;<br />datarx [i] = UDR;<br />lcd_gotoxy(8,1);            // for cek how many interuption<br />sprintf(buf2,&quot;%d&quot;,i);<br />lcd_puts(buf2);<br />delay_ms(1000);<br />lcd_clear(); <br />}<br /><br />best regard<br />amboaco<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1960">amboaco</a> — Tue Mar 30, 2010 3:02 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amboaco]]></name></author>
<updated>2010-03-30T14:52:35+01:00</updated>
<published>2010-03-30T14:52:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26146#p26146</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26146#p26146"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26146#p26146"><![CDATA[
about fast myLCD routines, I am not known. I am using LCD 16X2 and using wizard from CodeWizardAVR V2.03.4 Standard to control it. <br /><br />this example fungtion want to read and showing in LCD ( reading internal temperatur ID 1)<br /><br />void temperatur ()<br />{<br />    putchar(0xFF);<br />    putchar(0xFF);<br />    putchar(0x01);<br />    putchar(0x04);<br />    putchar(0x02);<br />    putchar(0x2B);<br />    putchar(0x01);<br />    putchar(0xCC); <br />}<br /><br />And I am sure, all byte has sent before changing direction. This can be evidenced from &quot;alarm led&quot; not blinks...<br /><br />this listing to show in LCD<br /><br />---------<br />lcd_clear();    <br />     lcd_gotoxy(0,0);<br />     sprintf(buf1,&quot;%x %x %x %x %x %x %x&quot;,datarx[1],datarx[2],datarx[3],datarx[4],datarx[5],datarx[6],datarx[7]);<br />     lcd_puts(buf1);<br />-----------<br /><br />Best regards..<br />Aco<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1960">amboaco</a> — Tue Mar 30, 2010 2:52 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2010-03-30T13:06:59+01:00</updated>
<published>2010-03-30T13:06:59+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26144#p26144</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26144#p26144"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26144#p26144"><![CDATA[
How fast are your LCD routines ? There are only a couple of bytes buffer in the USART and bytes arrive every 87 microseconds.<br /><br />Does speed1() check all bytes are sent before changing direction ?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Tue Mar 30, 2010 1:06 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amboaco]]></name></author>
<updated>2010-03-30T11:58:41+01:00</updated>
<published>2010-03-30T11:58:41+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26143#p26143</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26143#p26143"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26143#p26143"><![CDATA[
Thanks for the feedback. <br /><br />In my project, my using microcontroller avr 8535 with eksternal clock 11,0592 Mhz. I am setting baudrate in microcontroller and dynamixel ax-12 as same is 115,2 kbps. <br /><br />For sending data to the dyanamixel Ax-12 there is not problem, but only in the reading of data from dynamixel Ax-12 for reading ( USING INSTRUCTION &quot;READ&quot; )  internal temperatur and speed. I can just detect the two data and the rests are missing.<br /><br />Any idea please?<br />Best regard..<br />Aco<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1960">amboaco</a> — Tue Mar 30, 2010 11:58 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Fritzoid]]></name></author>
<updated>2010-03-29T12:23:39+01:00</updated>
<published>2010-03-29T12:23:39+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26119#p26119</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26119#p26119"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26119#p26119"><![CDATA[
Sounds like a speed or parity issue.  What's the setup on the USART?  Also, what is the clock speed of the 8535?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=438">Fritzoid</a> — Mon Mar 29, 2010 12:23 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[ryann2k1]]></name></author>
<updated>2010-03-29T04:49:22+01:00</updated>
<published>2010-03-29T04:49:22+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26113#p26113</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26113#p26113"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=26113#p26113"><![CDATA[
Try read this thread<br /><br /><!-- m --><a class="postlink" href="http://forums.trossenrobotics.com/tutorials/how-to-diy-128/controlling-ax-12-servos-3275/">http://forums.trossenrobotics.com/tutor ... rvos-3275/</a><!-- m --><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=384">ryann2k1</a> — Mon Mar 29, 2010 4:49 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[amboaco]]></name></author>
<updated>2010-03-03T05:52:36+01:00</updated>
<published>2010-03-03T05:52:36+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=25693#p25693</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=25693#p25693"/>
<title type="html"><![CDATA[showing status packet in LCD with atmega8535]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=5922&amp;p=25693#p25693"><![CDATA[
hello all, please help mi for my project...<br /><br />i want to control dynamixel with  mikrokontroller atmega8535 but is constrained to display the status of packet (present load and present speed) on the LCD 16 * 2. I use the language with the compiler c codevision avr (hp.infotech.com). I use the serial interruptions.<br /><br />following listing program..<br />------------------------<br />hitung = 0;<br />      dp_kirim();      // direction port for send &quot; instruction packet&quot;<br />      speed1();  // fungsi for read present speed dynamixel ID1 <br />      reset();   // not send instuction packet and receive packet<br />      #asm(&quot;sei&quot;)  // interupsi aktif<br />      dp_terima();  // direction port for receive &quot; status packet packet&quot;<br />      while (hitung == 7) // wait until status packet receive 7<br />      tampilkan ( P1, P2, ID, lengh, error,parameter,CS); // showing LCD<br />   <br />------------------------<br /><br />listing block interupsi serial<br />--------------<br />interrupt [USART_RXC] void usart_rx_isr(void)<br />{<br />hitung++;<br />if (hitung == 1) <br />    {   <br />    P1=UDR; <br />    lcd_gotoxy(15,0);<br />    lcd_putsf(&quot;B&quot;);   <br />    }<br />else if (hitung == 2)<br />    {   <br />    P2 = UDR;<br />    }<br />else if (hitung == 3)<br />    {   <br />    ID = UDR;<br />    }<br />else if (hitung == 4)<br />    {     <br />    lengh = UDR;<br />    }<br />else if (hitung == 5)<br />    {     <br />    error = UDR;<br />    }<br />else if (hitung == 6)<br />    {     <br />    parameter = UDR;<br />    }<br />else if (hitung == 7)<br />    {    <br />    CS = UDR;<br />    }<br />else<br />    {<br />    #asm(&quot;cli&quot;)<br />    reset();<br />    };<br />}<br />--------------------------<br /><br />problem: data received does not match the actual<br /><br />thanks before<br />best regard<br />amboaco ( student in indonesia)<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1960">amboaco</a> — Wed Mar 03, 2010 5:52 am</p><hr />
]]></content>
</entry>
</feed>