Relokace pinu SPI na arduino mega

Jaroslav Buchta jaroslav.buchta na hascomp.cz
Úterý Prosinec 5 22:17:17 CET 2017


To nema HW SPI? A jestli jo, nema jich vic, ze by se nahradil?

Dne 05.12.2017 v 22:13 Radek Koutsky napsal(a):
>
> Potom není co řešit, SPI je triviální sběrnice.
>
> Využil bych PIN kde je možnost přerušení a tomuto PINu bych definoval 
> hodiny…zbytek netřeba komentovat…
>
> R.
>
> *From:*Hw-list [mailto:hw-list-bounces na list.hw.cz] *On Behalf Of 
> *Jirka Mww
> *Sent:* Tuesday, December 5, 2017 10:10 PM
> *To:* HW-news
> *Subject:* Re: Relokace pinu SPI na arduino mega
>
> Z fora Arduino :
>
> 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:
>
> Code: [Select]
>
> |void somefunction(void) __attribute__((naked))|
> |{|
> | asm volatile ("|
>
> |; your assembly code here|
>
> | ");|
> |}|
>
>
> Zdravi
> Jirka Sloupenský  OK1MWW
>
> Dne 5. prosince 2017 22:00 Radek Koutsky <radek.koutsky na gmail.com 
> <mailto:radek.koutsky na gmail.com>> napsal(a):
>
> Je pravda, že nejsem příznivcem této "vychytávky" nicméně chcete mi 
> říct, že v Arduino nelze praktikovat assembler?
>
>
>
> R.
>
> -----Original Message-----
> From: Hw-list [mailto:hw-list-bounces na list.hw.cz 
> <mailto:hw-list-bounces na list.hw.cz>] On Behalf Of Petr Labaj
> Sent: Tuesday, December 5, 2017 9:39 PM
> To: hw-list na list.hw.cz <mailto:hw-list na list.hw.cz>
> Subject: Re: Relokace pinu SPI na arduino mega
>
> Pane kolego ... Arduino, Arduino.
> Tam se to takhle nedělá ...
>
> PL
>
> ********************
>
> Dne 5.12.2017 v 21:32 Radek Koutsky napsal(a):
> > Zdali jste středně pokročilým uživatelem, tak SPI knihovnu zvládnete 
> napsat během pár minut.
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz <http://www.HW.cz> 
> Hw-list na list.hw.cz <mailto:Hw-list na list.hw.cz> 
> http://list.hw.cz/mailman/listinfo/hw-list
>
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz <http://www.HW.cz>
> Hw-list na list.hw.cz <mailto:Hw-list na list.hw.cz>
> http://list.hw.cz/mailman/listinfo/hw-list
>
>
>
> _______________________________________________
> HW-list mailing list  -  sponsored by www.HW.cz
> Hw-list na list.hw.cz
> http://list.hw.cz/mailman/listinfo/hw-list


------------- další část ---------------
HTML příloha byla odstraněna...
URL: <http://list.hw.cz/pipermail/hw-list/attachments/20171205/1658c1a3/attachment.html>


Další informace o konferenci Hw-list