communication_protocole_spi
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
communication_protocole_spi [2022/09/05 07:34] – supprimée - modification externe (Unknown date) 127.0.0.1 | communication_protocole_spi [2022/09/06 07:34] (Version actuelle) – [Arduino retourne ce qui a été envoyé] serge | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== Communication avec le protocole SPI ====== | ||
+ | <WRAP center round box 60% centeralign> | ||
+ | **{{tagpage> | ||
+ | </ | ||
+ | =====Ressources===== | ||
+ | Wikipedia: | ||
+ | * **https:// | ||
+ | * **https:// | ||
+ | |||
+ | Article à lire en 1er: | ||
+ | * **[[spi_documentation_1|Les principes]]** | ||
+ | |||
+ | * **[[spi_documentation_2|Communication entre Raspberry Pi et Arduino en SPI]]** Ne marche pas sur une ESP32 | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | |||
+ | =====Documents PDF===== | ||
+ | * {{ : | ||
+ | * {{ : | ||
+ | * {{ : | ||
+ | |||
+ | |||
+ | |||
+ | =====SPI entre Raspberry et Arduino===== | ||
+ | **Avec arduino en mode slave** | ||
+ | |||
+ | ====Ressources==== | ||
+ | * **[[http:// | ||
+ | |||
+ | ====Slave Mode with SPI.h==== | ||
+ | **et avec des interrupt** | ||
+ | **[[https:// | ||
+ | SPI.h library by default only support Master mode, the SPI.begin() will automatically set slave select (ss) pin to HIGH whether you have pinMode(ss, OUTPUT) in your setup() code or not and set the Arduino as an SPI master. | ||
+ | As the SPI library does not contain the functionality for slave mode, in order to use Arduino as a Slave, you will need to do some customised setup, mainly on | ||
+ | - setting MISO as OUTPUT for slave to send data | ||
+ | - enable slave mode by setting the SPCR register | ||
+ | - enable interrupt when data is received. | ||
+ | |||
+ | ====Nick Gammon explique tout sur le SPI==== | ||
+ | * **[[http:// | ||
+ | |||
+ | Les scripts sont sur **[[https:// | ||
+ | |||
+ | ===How to make an SPI slave=== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | Montre le problème du 1er transfert. | ||
+ | |||
+ | ===How to get a response from a slave=== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ===Envoyez et recevez tout type de données === | ||
+ | * https:// | ||
+ | |||
+ | |||
+ | {{tag> communication sb spi }} |