<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"Formátovaný v HTML Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Text bubliny Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.FormtovanvHTMLChar
{mso-style-name:"Formátovaný v HTML Char";
mso-style-priority:99;
mso-style-link:"Formátovaný v HTML";
font-family:Consolas;
mso-fareast-language:CS;}
span.TextbublinyChar
{mso-style-name:"Text bubliny Char";
mso-style-priority:99;
mso-style-link:"Text bubliny";
font-family:"Tahoma","sans-serif";
mso-fareast-language:CS;}
span.StylE-mailovZprvy22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:black;}
span.StylE-mailovZprvy24
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:black;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=CS link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Má, ale tazatel píše, že mu nechodí, čili je zřejmě nefunkční, tedy hledáme řešení. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>Dle DS bych hledal možnosti s relokací PINu (HW SPI – zda to jde) nebo náhrady v podobě PINu s přerušením, nebo i bez přerušení – zde je nutno cyklicky kontrolovat změnu stavu….<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'>R.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:black'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> Hw-list [mailto:hw-list-bounces@list.hw.cz] <b>On Behalf Of </b>Jaroslav Buchta<br><b>Sent:</b> Tuesday, December 5, 2017 10:17 PM<br><b>To:</b> hw-list@list.hw.cz<br><b>Subject:</b> Re: Relokace pinu SPI na arduino mega<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>To nema HW SPI? A jestli jo, nema jich vic, ze by se nahradil?<br><br>Dne 05.12.2017 v 22:13 Radek Koutsky napsal(a):<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Potom není co řešit, SPI je triviální sběrnice.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Využil bych PIN kde je možnost přerušení a tomuto PINu bych definoval hodiny…zbytek netřeba komentovat…</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>R.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'> </span><o:p></o:p></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Hw-list [<a href="mailto:hw-list-bounces@list.hw.cz">mailto:hw-list-bounces@list.hw.cz</a>] <b>On Behalf Of </b>Jirka Mww<br><b>Sent:</b> Tuesday, December 5, 2017 10:10 PM<br><b>To:</b> HW-news<br><b>Subject:</b> Re: Relokace pinu SPI na arduino mega</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><div><p class=MsoNormal>Z fora Arduino : <br><br>You can also mix C and assembly using the "asm" pseudo-function. By using the "naked" attribute for functions, you can write your entire program in assembly code, but from within a C file so that the compiler takes care of all the labels, section directives, etc. For example:<o:p></o:p></p><div><p class=MsoNormal>Code: [Select]<o:p></o:p></p></div><pre><code>void somefunction(void) __attribute__((naked))</code><o:p></o:p></pre><pre><code>{</code><o:p></o:p></pre><pre><code> asm volatile ("</code><o:p></o:p></pre><pre><o:p> </o:p></pre><pre><code> ; your assembly code here</code><o:p></o:p></pre><pre><o:p> </o:p></pre><pre><code> ");</code><o:p></o:p></pre><pre><code>}</code><o:p></o:p></pre></div><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><p class=MsoNormal>Zdravi<br>Jirka Sloupenský OK1MWW<o:p></o:p></p></div></div><p class=MsoNormal> <o:p></o:p></p><div><p class=MsoNormal>Dne 5. prosince 2017 22:00 Radek Koutsky <<a href="mailto:radek.koutsky@gmail.com" target="_blank">radek.koutsky@gmail.com</a>> napsal(a):<o:p></o:p></p><p class=MsoNormal>Je pravda, že nejsem příznivcem této "vychytávky" nicméně chcete mi říct, že v Arduino nelze praktikovat assembler?<br><br><br><br>R.<br><br>-----Original Message-----<br>From: Hw-list [mailto:<a href="mailto:hw-list-bounces@list.hw.cz">hw-list-bounces@list.hw.cz</a>] On Behalf Of Petr Labaj<br>Sent: Tuesday, December 5, 2017 9:39 PM<br>To: <a href="mailto:hw-list@list.hw.cz">hw-list@list.hw.cz</a><br>Subject: Re: Relokace pinu SPI na arduino mega<br><br>Pane kolego ... Arduino, Arduino.<br>Tam se to takhle nedělá ...<br><br>PL<br><br>********************<br><br>Dne 5.12.2017 v 21:32 Radek Koutsky napsal(a):<br>> Zdali jste středně pokročilým uživatelem, tak SPI knihovnu zvládnete napsat během pár minut.<br>_______________________________________________<br>HW-list mailing list - sponsored by <a href="http://www.HW.cz" target="_blank">www.HW.cz</a> <a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a> <a href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><br><br>_______________________________________________<br>HW-list mailing list - sponsored by <a href="http://www.HW.cz" target="_blank">www.HW.cz</a><br><a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><br><a href="http://list.hw.cz/mailman/listinfo/hw-list" target="_blank">http://list.hw.cz/mailman/listinfo/hw-list</a><o:p></o:p></p></div><p class=MsoNormal> <o:p></o:p></p></div><p class=MsoNormal><br><br><br><o:p></o:p></p><pre>_______________________________________________<o:p></o:p></pre><pre>HW-list mailing list - sponsored by <a href="http://www.HW.cz">www.HW.cz</a><o:p></o:p></pre><pre><a href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a><o:p></o:p></pre><pre><a href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a><o:p></o:p></pre></blockquote><p><o:p> </o:p></p></div></body></html>