Modifications

Sauter à la navigation Sauter à la recherche
744 octets ajoutés ,  14 octobre 2013 à 18:53
Ligne 69 : Ligne 69 :     
== Entrée et Sorties ==
 
== Entrée et Sorties ==
It is not possible to access the I/O pins of the Atheros AR9331. All I/O lines are tied to the 32U4.
+
Il n'est pas possible d'accéder aux broches d'entrées/sorties du processeur Atheros AR9331. Toutes les lignes I/O sont raccordées sur le 32U4.
   −
Each of the 20 digital i/o pins on the Yún can be used as an input or output, using [http://arduino.cc/en/Reference/PinMode pinMode()], [http://arduino.cc/en/Reference/DigitalWrite digitalWrite()], and [http://arduino.cc/en/Reference/DigitalRead digitalRead()] functions. They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have specialized functions:
+
Chacune des 20 broches d'entrée/sortie digitale du Yún peuvent être utilisée comme entrée ("''input''") ou sortie ("''output''") en utilisant les fonctions [http://arduino.cc/en/Reference/PinMode pinMode()], [http://arduino.cc/en/Reference/DigitalWrite digitalWrite()] et [http://arduino.cc/en/Reference/DigitalRead digitalRead()]. Elle fonctionnent en logique 5 volts. Chaque broche peut fournir et recevoir un maximum de 40mA et dispose de résistance pull-up (déconnectée par défaut) de 20-50 KOhms.  
   −
* '''Serial: 0 (RX) and 1 (TX)'''. Used to receive (RX) and transmit (TX) TTL serial data using the ATmega32U4 hardware serial capability. Note that on the Yún, the Serial class refers to USB (CDC) communication; for TTL serial on pins 0 and 1, use the Serial1 class. The hardware serials of the ATmega32U4 and the AR9331 on the Yún are connected together and are used to communicate between the two processors. As is common in Linux systems, on the serial port of the AR9331 is exposed the console for access to the system, this means that you can access to the programs and tools offered by Linux from your sketch.
+
De surcroît, certaines proches ont des fonctions spécialisées:
* '''TWI: 2 (SDA) and 3 (SCL)'''. Support TWI communication using the [[ARDLib-Wire|Wire library]].
  −
* '''External Interrupts: 3 (interrupt 0), 2 (interrupt 1), 0 (interrupt 2), 1 (interrupt 3) and 7 (interrupt 4).''' These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the [http://arduino.cc/en/Reference/AttachInterrupt attachInterrupt()] function for details. Is not recommended to use pins 0 and 1 as interrupts because they are the also the hardware serial port used to talk with the Linux processor. Pin 7 is connected to the AR9331 processor and it may be used as handshake signal in future. Is recommended to be careful of possible conflicts if you intend to use it as interrupt.
  −
* '''PWM: 3, 5, 6, 9, 10, 11, and 13.''' Provide 8-bit PWM output with the [http://arduino.cc/en/Reference/AnalogWrite analogWrite()] function.
  −
* '''SPI: on the ICSP header'''. These pins support SPI communication using the [[ARDLib-SPI SPI|library]]. Note that the SPI pins are not connected to any of the digital I/O pins as they are on the Uno, They are only available on the ICSP connector. This means that if you have a shield that uses SPI, but does NOT have a 6-pin ICSP connector that connects to the Yún's 6-pin ICSP header, the shield will not work.
     −
The SPI pins are also connected to the AR9331 gpio pins, where it has been implemented in software the SPI interface. This means that the ATMega32u4 and the AR9331 can also communicate using the SPI protocol.
+
* '''Série: 0 (RX) et 1 (TX)'''. Utilisé pour recevoir (RX) et transmettre (TX) des données sur une port série TTL en utilisant les capacités matériels du ATmega32U4. Notez que sur le Yún, la classe ''Serial'' référence la communication USB (CDC); pour le port série TTL sur les broches 0 et 1, utilisez la classe ''Serial1''. Sur le Yún, les ports séries matériels de l'ATmega32U4 et du AR9331 sont connectés ensembles et utilisés pour la communication entre les processeurs. Comme c'est couramment le cas sur les systèmes Linux, le port série du AR9331 expose une console fournissant un accès au système, cela signifie que vous pouvez accéder aux programmes et outils offerts par Linux depuis vos sketch/croquis.
 +
* '''TWI: 2 (SDA) et 3 (SCL)'''. Support de la communication TWI (Two Wire... soit I2C) en utilisant la [[ARDLib-Wire|librairie Wire]].
 +
* '''Interruptions externes: 3 (interruption 0), 2 (interruption 1), 0 (interruption 2), 1 (interruption 3) et 7 (interruption 4).''' Ces broches peuvent être configurées pour capturer des signaux d'interruption sur valeur "LOW", flan montant ("''rising edge''"), flan descendant ("''falling edge'') ou le changement de valeur. voir la fonction [http://arduino.cc/en/Reference/AttachInterrupt attachInterrupt()] pour plus d'information. Il n'est pas recommandé d'utiliser les broches 0 et 1 comme interruption parce qu'elles sont aussi utilisées par le port série matériel pour communiquer avec le processeur Linux. La broches 7 est connectée sur le processeur AR9331 et pourrait être utilisé comme signal de handshake dans le future. Il est donc recommandé d'être prudent vis-à-vis des possibles conflits si vous l'utilisez comme interruption.
 +
* '''PWM: 3, 5, 6, 9, 10, 11 et 13.''' Fournit des sorties PWM 8-bit avec la fonction [http://arduino.cc/en/Reference/AnalogWrite analogWrite()].
 +
* '''SPI: sur le connecteur ICSP'''. Ces broches supportent la communication SPI en utilisant la [[ARDLib-SPI|librairie SPI]]. Notez que les broches SPI ne sont pas connectées sur des broches d'entrée/sortie digitales comme c'est le cas pour Arduino Uno, elles sont uniquement disponible sur le connecteur ICSP. Cela signifie que si vous avez un shield SPI, mais que celui ci ne fonctionnera qui s'il dispose du connecteur ICSP 6-broches qui se connecte sur le connecteur 6 broches ICSP correspondant du Yún.  
   −
* '''LED: 13.''' There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.
+
Les broches SPI sont également connectées sur le GPIO du AR9331, où une interface SPI logicielle à été implémentée. Cela signifie que l'ATMega32u4 et l'AR9331 peuvent aussi communiquer en utilisant le protocole SPI.
* There are several other status LEDs on the Yún, indicating power, WLAN connection, WAN connection and USB.  
      +
* '''LED: 13.''' Il y a une LED intégrée à la carte et connectée sur la broche digitale 13. Lorsque la broche est à la valeur HIGH (état haut), la LED est allumée. La LED est éteinte lorsque la broche est à LOW (état bas).
 +
* Il y a plusieurs autres LED de statut sur le Yún indiquant l'état d'alimentation ("''power''"), connexion WLAN (Wifi), connexion WAN (Ethernet) et USB.
    
{{ARDImage|Arduino-Yun-Pres10.jpg|390px}}<small> Traduction: MCHobby.be</small>
 
{{ARDImage|Arduino-Yun-Pres10.jpg|390px}}<small> Traduction: MCHobby.be</small>
29 917

modifications

Menu de navigation