<?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=17&amp;t=6079" />

<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-05-24T02:07:08+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=17&amp;t=6079</id>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2010-05-24T02:07:08+01:00</updated>
<published>2010-05-24T02:07:08+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26874#p26874</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26874#p26874"/>
<title type="html"><![CDATA[Re: SPI]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26874#p26874"><![CDATA[
<blockquote><div><cite>SoBot wrote:</cite><br />I think I found my problem. The roboard SPI is at 3.3V and my PIC is running at 5V. I initially thought the PIC's I/O pin min input high voltage is around 2.5V and therefore should work with 3.3 high level. Unfortunately it seems that the pic18f2431 max input high voltage is 3.5V.   <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /> <br />My PIC can't run on 3.3 volt, so I have to use a level shifter. The bad thing is that my hardware is already made. Does anyone know of a way of doing this without a level shifter?  Is it possible to change the roboard's SPI voltage level? (just taking a chance <img src="http://forum.robosavvy.com/images/smilies/icon_smile.gif" alt=":)" title="Smile" /> )<br /></div></blockquote><br /><br />Hi,<br /><br />indeed, you need a level shifter (composed of a simple transistor circuit or buffer gates) to get 5V RoBoard SPI output. <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=1542">roboard</a> — Mon May 24, 2010 2:07 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SoBot]]></name></author>
<updated>2010-05-18T19:31:35+01:00</updated>
<published>2010-05-18T19:31:35+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26814#p26814</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26814#p26814"/>
<title type="html"><![CDATA[SPI]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26814#p26814"><![CDATA[
I think I found my problem. The roboard SPI is at 3.3V and my PIC is running at 5V. I initially thought the PIC's I/O pin min input high voltage is around 2.5V and therefore should work with 3.3 high level. Unfortunately it seems that the pic18f2431 max input high voltage is 3.5V.   <img src="http://forum.robosavvy.com/images/smilies/icon_sad.gif" alt=":(" title="Sad" /> <br />My PIC can't run on 3.3 volt, so I have to use a level shifter. The bad thing is that my hardware is already made. Does anyone know of a way of doing this without a level shifter?  Is it possible to change the roboard's SPI voltage level? (just taking a chance <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=2054">SoBot</a> — Tue May 18, 2010 7:31 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2010-05-11T07:51:01+01:00</updated>
<published>2010-05-11T07:51:01+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26728#p26728</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26728#p26728"/>
<title type="html"><![CDATA[SPI clock]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26728#p26728"><![CDATA[
<blockquote><div><cite>SoBot wrote:</cite><br />Ok, I've got the library v1.6 now and I want to use the spi_InitializeSW function to see if it works with a lower clock speed. But I am not exacly sure how to use the function (there is no documentation availible). What does the SPIMODE's mean. Is the updated documentation still on its way?<br /></div></blockquote><br /><br />The documents are being prepared (we are writing detailed documents for each sub-lib of RoBoIO). Brief description for new functions of RoBoIO v1.6 and their usage can be found in the &quot;history.txt&quot;, in your downloaded files <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=1542">roboard</a> — Tue May 11, 2010 7:51 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SoBot]]></name></author>
<updated>2010-05-10T15:33:29+01:00</updated>
<published>2010-05-10T15:33:29+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26716#p26716</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26716#p26716"/>
<title type="html"><![CDATA[SPI clock]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26716#p26716"><![CDATA[
Ok, I've got the library v1.6 now and I want to use the spi_InitializeSW function to see if it works with a lower clock speed. But I am not exacly sure how to use the function (there is no documentation availible). What does the SPIMODE's mean. Is the updated documentation still on its way?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2054">SoBot</a> — Mon May 10, 2010 3:33 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2010-05-03T09:38:16+01:00</updated>
<published>2010-05-03T09:38:16+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26613#p26613</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26613#p26613"/>
<title type="html"><![CDATA[Re: SPI]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26613#p26613"><![CDATA[
<blockquote><div><cite>SoBot wrote:</cite><br />I am using the PIC18F2431 and its running in PLL mode(40 Mhz), that means the SPI should be able to run at max Fosc/4 = 10Mhz. It works great when I use two PIC's running at SPI clock = 10Mhz but not with the roboard and PIC.<br /><br />Are there any way that I can echo the roboard's SPI data back to the SDI pin to test if the roboard is the problem or not?<br /></div></blockquote><br /><br />The PLL sources of RoBoard's SPI and PIC18F2431's SPI are different, and so the both resulting 10MHZ SPI clocks don't really very match. This may be the reason of unstability. If your PIC18F2431 can run in a faster clock, you should be able to get a more stable SPI transmission with RoBoard.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Mon May 03, 2010 9:38 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SoBot]]></name></author>
<updated>2010-04-29T09:05:19+01:00</updated>
<published>2010-04-29T09:05:19+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26574#p26574</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26574#p26574"/>
<title type="html"><![CDATA[SPI]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26574#p26574"><![CDATA[
Thanks, I will contact them.<br /><br />I am using the PIC18F2431 and its running in PLL mode(40 Mhz), that means the SPI should be able to run at max Fosc/4 = 10Mhz. It works great when I use two PIC's running at SPI clock = 10Mhz but not with the roboard and PIC.<br /><br />Are there any way that I can echo the roboard's SPI data back to the SDI pin to test if the roboard is the problem or not?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2054">SoBot</a> — Thu Apr 29, 2010 9:05 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2010-04-29T04:56:47+01:00</updated>
<published>2010-04-29T04:56:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26571#p26571</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26571#p26571"/>
<title type="html"><![CDATA[Re: SPI]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26571#p26571"><![CDATA[
<blockquote><div><cite>SoBot wrote:</cite><br />I changed my roboard agian with another one and now it works! Don't know whats wrong with that one. <img src="http://forum.robosavvy.com/images/smilies/icon_confused.gif" alt=":?" title="Confused" /> <br />But now I have another problem: My slave device recieves the data but its not very constant. Around 1 out of 5 bytes is an error. Why is it so unstable?<br /></div></blockquote><br /><br />The SPICLK pin of the former RoBoard might be anomalistic; you can contact <!-- e --><a href="mailto:tech@roboard.com">tech@roboard.com</a><!-- e --> or <!-- e --><a href="mailto:info@roboard.com">info@roboard.com</a><!-- e --> for reparing this issue.<br /><br />The minimum SPI clock of RoBoard is 10MHZ, which may over the spec of your SPI device. This may cause your device receiving data unstably. Please ensure that your device accepts RoBoard's high SPI speed.<br /><br />PS: RoBoIO v1.6 will add S/W simulated SPI for low-speed SPI devices (&lt; 100KHZ) and will be released in the next week. But, if your device requires a clock speed of &gt; 100KHZ, RoBoIO v1.6 may not be able to solve your problem.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Thu Apr 29, 2010 4:56 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SoBot]]></name></author>
<updated>2010-04-28T15:22:20+01:00</updated>
<published>2010-04-28T15:22:20+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26564#p26564</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26564#p26564"/>
<title type="html"><![CDATA[SPI]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26564#p26564"><![CDATA[
I changed my roboard agian with another one and now it works! Don't know whats wrong with that one. <img src="http://forum.robosavvy.com/images/smilies/icon_confused.gif" alt=":?" title="Confused" /> <br />But now I have another problem: My slave device recieves the data but its not very constant. Around 1 out of 5 bytes is an error. Why is it so unstable?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2054">SoBot</a> — Wed Apr 28, 2010 3:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SoBot]]></name></author>
<updated>2010-04-23T13:34:22+01:00</updated>
<published>2010-04-23T13:34:22+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26509#p26509</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26509#p26509"/>
<title type="html"><![CDATA[SPI clock]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26509#p26509"><![CDATA[
Ok, when will the v1.6 be out?  I even tried a nother roboard, but its the same so it must be in the software. I also want to know if it matters that the code is not compiled on the roboard? I compile it on my PC and then send it over the network and run it on the roboard with ssh. (At the moment my roboard runs to slow with Xubuntu to compile it onboard)<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2054">SoBot</a> — Fri Apr 23, 2010 1:34 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[roboard]]></name></author>
<updated>2010-04-19T12:00:59+01:00</updated>
<published>2010-04-19T12:00:59+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26445#p26445</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26445#p26445"/>
<title type="html"><![CDATA[SPI clock]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26445#p26445"><![CDATA[
Hi,<br /><br />1. we have tried but did NOT see the problem as mentioned,  please check if the spi clock pin5 is grounded carelessly.<br />2. We will add the software similated SPI on future RoBoIO library (V1.6) to tackle the SPI clock speed too high issue.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1542">roboard</a> — Mon Apr 19, 2010 12:00 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[SoBot]]></name></author>
<updated>2010-04-16T12:05:08+01:00</updated>
<published>2010-04-16T12:05:08+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26399#p26399</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26399#p26399"/>
<title type="html"><![CDATA[SPI clock]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6079&amp;p=26399#p26399"><![CDATA[
I am usign the spi to communicate to a slave device. For some reason there is no signal on any of the clock outputs when I write to the spi. On my scope I can see a signal on the data output but not on the clock. What am I missing? Here is the code:<br /><br />if (spi_Initialize(SPICLK_10000KHZ))<br />                {<br />for (int i = 1;i &lt; 20;i++)<br />    spi_Write(0x01);<br />                <br />                cout &lt;&lt; &quot;Write to spi&quot; &lt;&lt; endl;<br />} else cout &lt;&lt; roboio_GetErrMsg();<br /><br />spi_Close();<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2054">SoBot</a> — Fri Apr 16, 2010 12:05 pm</p><hr />
]]></content>
</entry>
</feed>