Différences entre versions de « Pololu-Romi-32U4-Carte-Broches »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
 
(8 versions intermédiaires par le même utilisateur non affichées)
Ligne 1 : Ligne 1 :
 
{{Pololu-Romi-32U4-NAV}}
 
{{Pololu-Romi-32U4-NAV}}
  
{{traduction}}
+
== Assignation des broches ==
 +
La table ci-dessous liste l'assignation des broches ATmega32U4 exploité sur la carte contrôleur Romi 32U4.
  
== Assignation des broches ==
+
Cette information est utile si vous désirez ajouter vitre propre électronique sur le Romi 32U4, écrire du code de bas niveau pour le matériel interfacé ou si vous voulez simplement mieux comprendre comment fonctionne le Romi 32U4. Chaque ligne représente une broche physique du microcontrôleur ATmega32U4.
The table below lists the most important pin assignments for the ATmega32U4 on the Romi 32U4 Control Board. This table is helpful if you want to add your own electronics to the Romi 32U4, write your own low-level code for interfacing with the hardware, or just want to understand better how the Romi 32U4 works. Each row represents a physical pin on the ATmega32U4.
 
  
The “ATmega32U4 pin name” column shows the official name of the pin according to the [https://www.microchip.com/wwwproducts/en/ATmega32u4 fiche technique de l' ATmega32U4].
+
la colonne "ATmega32U4 broche" montre le nom officiel sur l'ATmega32U4 tel que repris sur [https://www.microchip.com/wwwproducts/en/ATmega32u4 fiche technique de l' ATmega32U4].
  
The “Arduino pin names” column lists the names provided by the Arduino environment for the pin. These names can generally be used as arguments to any function that takes a pin number. However, there are some exceptions. For example, passing the number 4 to {{fname|analogRead}} actually reads pin A4, not pin 4. Also, due to hardware limitations, some functions only work on a limited set of pins.
+
La colonne "Arduino broche" reprend le nom tel que connu dans l'environnement Arduino. Ces noms peuvent généralement être utilisé comme argument pour les fonction Arduino nécessitant un numéro de broche. Il y a cependant quelques exceptions. Par exemple, passer ne numéro 4 à {{fname|analogRead}} lira la broche A4 et nom la broche 4. Il y a également des limitations matérielles autorisant des fonctions à ne travailler qu'avec un ensemble limité de broches.
  
The “Romi 32U4 functions” column documents what the pin is used for on the Romi 32U4 Control Board. Many pins can serve multiple purposes concurrently by switching modes. For example, PB0 can read the state of button C when it is an input, and it can control the red LED and serve as an LCD data line when it is an output.
+
La colonne "Romi 32U4 fonctions" indique l'assignation de la broche sur la carte de contrôle Romi 32U4. De nombreuses broches peuvent servir à plusieurs utilisation (en changeant de mode). Par exemple, PB0 peu lire l'état du bouton C lorsqu'elle est en entrée et en sortie, peut contrôler la LED rouge ou servir de ligne de donnée (LCD data) pour un afficheur LCD.
  
The “Note/alternate functions” column documents other features of the pin, although some of those features might be impractical to use.
+
La colonne "Note/fonction alternative" documente d'autres fonctionnalités de la broche, même si certaines fonctionnalités seraient raisonnablement impossible à exploiter.
  
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| ATmega32U4 pin name  
+
| align="center" | '''ATmega32U4 broche'''  
| Arduino pin names
+
| align="center" | '''Arduino broche'''
| Romi 32U4 Control Board functions
+
| align="center" | '''Romi 32U4 fonctions'''
| Notes/alternate functions
+
| align="center" | '''Notes/fonctions alternatives'''
 
|-
 
|-
 
| PB7   
 
| PB7   
 
| 11  
 
| 11  
| LCD control line (E)  
+
| Ligne contrôle LCD (E)  
 
| Timer0 PWM output A (OC0A)
 
| Timer0 PWM output A (OC0A)
  
 
Timer1 PWM output C (OC1C)
 
Timer1 PWM output C (OC1C)
  
UART flow control (RTS)
+
Contrôle flux UART (RTS)
  
 
Pin-change interrupt (PCINT7)
 
Pin-change interrupt (PCINT7)
Ligne 34 : Ligne 34 :
 
| PD4   
 
| PD4   
 
| 4, A6, 24   
 
| 4, A6, 24   
| LCD control line (RS)   
+
| Ligne contrôle LCD (RS)   
| Analog input (ADC8)
+
| Entrée analogique (ADC8)
  
 
Timer1 input capture pin (ICP1)
 
Timer1 input capture pin (ICP1)
Ligne 41 : Ligne 41 :
 
| PB3   
 
| PB3   
 
| 14, MISO   
 
| 14, MISO   
| User pushbutton A
+
| bouton utilisateur A
  
LCD data line DB4
+
Ligne donnée LCD DB4
| SPI Master Input/Slave Output (MISO)
+
| SPI MISO
  
 
Pin-change interrupt (PCINT3)
 
Pin-change interrupt (PCINT3)
  
ISP programming line (PDO)
+
Ligne programmation ISP (PDO)
 
|-
 
|-
 
| PB0   
 
| PB0   
 
| 17, LED_BUILTIN_RX, SS   
 
| 17, LED_BUILTIN_RX, SS   
| Red LED (RX)
+
| LED Rouge (RX)
  
User pushbutton C
+
Bouton utilisateur C
  
LCD data line DB5
+
Ligne donnée LCD DB5
| SPI slave select (SS)
+
| SPI selection esclave (SS)
  
 
Pin-change interrupt (PCINT0)
 
Pin-change interrupt (PCINT0)
Ligne 63 : Ligne 63 :
 
| PC7   
 
| PC7   
 
| 13, LED_BUILTIN   
 
| 13, LED_BUILTIN   
| Yellow LED
+
| LED Jaune
  
LCD data line DB6   
+
Ligne donnée LCD DB6   
 
| Timer4 PWM output A (OC4A)
 
| Timer4 PWM output A (OC4A)
  
Ligne 74 : Ligne 74 :
 
| PD5  
 
| PD5  
 
| 30, LED_BUILTIN_TX  
 
| 30, LED_BUILTIN_TX  
| Green LED (TX)
+
| LED verte (TX)
  
User pushbutton B
+
Bouton utilisateur B
  
LCD data line DB7  
+
Ligne donnée LCD DB7  
| UART external clock (XCK1)
+
| UART horloge externe (XCK1)
  
UART flow control (CTS)
+
UART contrôle flux (CTS)
 
|-
 
|-
 
| PD7  
 
| PD7  
 
| 6, A7, 25  
 
| 6, A7, 25  
| Buzzer PWM
+
| PWM Buzzer  
| Analog input (ADC10)
+
| Entrée analogique (ADC10)
  
 
Timer4 PWM output D (OC4D)
 
Timer4 PWM output D (OC4D)
Ligne 94 : Ligne 94 :
 
| PF6  
 
| PF6  
 
| A1, 19   
 
| A1, 19   
| Battery level input (VIN/3)   
+
| Entrée tension piles (VIN/3)   
| Analog input (ADC6)
+
| Entrée analogique (ADC6)
 
JTAG test data out (TDO)
 
JTAG test data out (TDO)
 
|-
 
|-
 
| PB6   
 
| PB6   
 
| 10, A10, 28   
 
| 10, A10, 28   
| Left Motor PWM
+
| PWM moteur gauche
| Analog input (ADC13)
+
| Entrée analogique (ADC13)
  
 
Timer1 PWM output B (OC1B)
 
Timer1 PWM output B (OC1B)
Ligne 111 : Ligne 111 :
 
| PB2   
 
| PB2   
 
| 16, MOSI   
 
| 16, MOSI   
| Left motor direction 
+
| Direction Moteur gauche
| SPI Master Output/Slave Input (MOSI)
+
| SPI MOSI
  
 
Pin-change interrupt (PCINT2)
 
Pin-change interrupt (PCINT2)
  
ISP programming line (PDI)
+
ISP ligne programmation (PDI)
 
|-
 
|-
 
| PB5   
 
| PB5   
 
| 9, A9, 27   
 
| 9, A9, 27   
| Right motor PWM   
+
| PWM moteur droit  
| Analog input (ADC12)
+
| Entrée analogique (ADC12)
  
 
Timer1 PWM output A (OC1A)
 
Timer1 PWM output A (OC1A)
Ligne 131 : Ligne 131 :
 
| PB1   
 
| PB1   
 
| 15, SCK   
 
| 15, SCK   
| Right motor direction  
+
| Direction moteur droit  
| SPI Clock (SCK)
+
| SPI Horloge (SCK)
  
 
Pin-change interrupt (PCINT1)
 
Pin-change interrupt (PCINT1)
  
ISP programming line (SCK)
+
Ligne programmation ISP (SCK)
 
|-
 
|-
 
| PB4   
 
| PB4   
 
| 8, A8, 26   
 
| 8, A8, 26   
| Left encoder XORed input  
+
| Entrée XOR de l'encodeur à gauche  
| Analog input (ADC11)
+
| Entrée analogique (ADC11)
  
 
Pin-change interrupt (PCINT4)
 
Pin-change interrupt (PCINT4)
Ligne 147 : Ligne 147 :
 
| PE2   
 
| PE2   
 
| -   
 
| -   
| Left encoder input 
+
| Entrée encodeur à gauche
 
| Hardware bootloader select (HWB)
 
| Hardware bootloader select (HWB)
 
|-
 
|-
 
| PE6   
 
| PE6   
 
| 7  
 
| 7  
| Right encoder XORed input
+
| Entrée XOR de l'encodeur à droite
| Analog comparator negative input (AIN0)
+
| Entrée négative du comparateur analogique (AIN0)
  
 
External interrupt source (INT6)
 
External interrupt source (INT6)
Ligne 159 : Ligne 159 :
 
| PF0  
 
| PF0  
 
| A5, 23  
 
| A5, 23  
| Right encoder input
+
| Entrée encodeur à droite
| Analog input (ADC0)
+
| Entrée analogique (ADC0)
 
|-
 
|-
 
| PD0   
 
| PD0   
 
| 3, SCL   
 
| 3, SCL   
| I2C clock for Raspberry Pi communication and inertial sensors 
+
| Horloge I2C pour communication Raspberry Pi et capteurs inertiels
 
| Timer0 PWM output B (OC0B)
 
| Timer0 PWM output B (OC0B)
  
Ligne 171 : Ligne 171 :
 
| PD1   
 
| PD1   
 
| 2, SDA   
 
| 2, SDA   
| I2C data for Raspberry Pi communication and inertial sensors
+
| Donnée I2C pour communication Raspberry Pi et capteurs inertiels
 
| External interrupt source (INT1)
 
| External interrupt source (INT1)
 
|-
 
|-
 
| PD2   
 
| PD2   
 
| 0   
 
| 0   
| Free I/O  
+
| '''entrée/sortie disponible'''  
| UART receive pin (RXD1)
+
| UART réception (RXD1)
  
 
External interrupt source (INT2)
 
External interrupt source (INT2)
Ligne 183 : Ligne 183 :
 
| PD3   
 
| PD3   
 
| 1   
 
| 1   
| Free I/
+
| '''entrée/sortie disponible'''
| UART transmit pin (TXD1)
+
| UART émission (TXD1)
  
 
External interrupt source (INT3)
 
External interrupt source (INT3)
Ligne 190 : Ligne 190 :
 
| PC6   
 
| PC6   
 
| 5   
 
| 5   
| Free I/O  
+
| '''entrée/sortie disponible'''  
 
| Timer3 PWM output A (OC3A)
 
| Timer3 PWM output A (OC3A)
  
Ligne 197 : Ligne 197 :
 
| PD6  
 
| PD6  
 
| 12, A11, 29  
 
| 12, A11, 29  
| Free I/
+
| '''entrée/sortie disponible''' 
| Analog input (ADC9)
+
| Entrée analogique (ADC9)
  
 
Timer4 PWM output D (OC4D)
 
Timer4 PWM output D (OC4D)
Ligne 206 : Ligne 206 :
 
| PF7  
 
| PF7  
 
| A0, 18   
 
| A0, 18   
| Free I/
+
| '''entrée/sortie disponible''' 
| Analog input (ADC7)
+
| Entrée analogique (ADC7)
  
 
JTAG test data in (TDI)
 
JTAG test data in (TDI)
Ligne 213 : Ligne 213 :
 
| PF5  
 
| PF5  
 
| A2, 20  
 
| A2, 20  
| Free I/
+
| '''entrée/sortie disponible''' 
| Analog input (ADC5)
+
| Entrée analogique (ADC5)
  
 
JTAG test mode select (TMS)
 
JTAG test mode select (TMS)
Ligne 220 : Ligne 220 :
 
| PF4   
 
| PF4   
 
| A3, 21  
 
| A3, 21  
| Free I/O  
+
| '''entrée/sortie disponible'''  
| Analog input (ADC4)
+
| Entrée analogique (ADC4)
  
 
JTAG test clock (TCK)
 
JTAG test clock (TCK)
Ligne 227 : Ligne 227 :
 
| PF1  
 
| PF1  
 
| A4, 22  
 
| A4, 22  
| Free I/O
+
| '''entrée/sortie disponible'''
 
+
| Entrée analogique (ADC1)
Analog input (ADC1)
 
 
|-
 
|-
 
| RESET   
 
| RESET   
 
| -   
 
| -   
| Reset pushbutton 
+
| Bouton Reset  
| internally pulled high, active low
+
| Résistance Pull-up interne, activé au niveau BAS
 
|-
 
|-
 
| AREF   
 
| AREF   
 
| -   
 
| -   
 
| -   
 
| -   
| Analog reference
+
| Référence analogique
 
|}
 
|}
  
  
 
{{Pololu-Romi-32U4-TRAILER}}
 
{{Pololu-Romi-32U4-TRAILER}}

Version actuelle datée du 5 novembre 2019 à 12:43

Assignation des broches

La table ci-dessous liste l'assignation des broches ATmega32U4 exploité sur la carte contrôleur Romi 32U4.

Cette information est utile si vous désirez ajouter vitre propre électronique sur le Romi 32U4, écrire du code de bas niveau pour le matériel interfacé ou si vous voulez simplement mieux comprendre comment fonctionne le Romi 32U4. Chaque ligne représente une broche physique du microcontrôleur ATmega32U4.

la colonne "ATmega32U4 broche" montre le nom officiel sur l'ATmega32U4 tel que repris sur fiche technique de l' ATmega32U4.

La colonne "Arduino broche" reprend le nom tel que connu dans l'environnement Arduino. Ces noms peuvent généralement être utilisé comme argument pour les fonction Arduino nécessitant un numéro de broche. Il y a cependant quelques exceptions. Par exemple, passer ne numéro 4 à analogRead lira la broche A4 et nom la broche 4. Il y a également des limitations matérielles autorisant des fonctions à ne travailler qu'avec un ensemble limité de broches.

La colonne "Romi 32U4 fonctions" indique l'assignation de la broche sur la carte de contrôle Romi 32U4. De nombreuses broches peuvent servir à plusieurs utilisation (en changeant de mode). Par exemple, PB0 peu lire l'état du bouton C lorsqu'elle est en entrée et en sortie, peut contrôler la LED rouge ou servir de ligne de donnée (LCD data) pour un afficheur LCD.

La colonne "Note/fonction alternative" documente d'autres fonctionnalités de la broche, même si certaines fonctionnalités seraient raisonnablement impossible à exploiter.

ATmega32U4 broche Arduino broche Romi 32U4 fonctions Notes/fonctions alternatives
PB7 11 Ligne contrôle LCD (E) Timer0 PWM output A (OC0A)

Timer1 PWM output C (OC1C)

Contrôle flux UART (RTS)

Pin-change interrupt (PCINT7)

PD4 4, A6, 24 Ligne contrôle LCD (RS) Entrée analogique (ADC8)

Timer1 input capture pin (ICP1)

PB3 14, MISO bouton utilisateur A

Ligne donnée LCD DB4

SPI MISO

Pin-change interrupt (PCINT3)

Ligne programmation ISP (PDO)

PB0 17, LED_BUILTIN_RX, SS LED Rouge (RX)

Bouton utilisateur C

Ligne donnée LCD DB5

SPI selection esclave (SS)

Pin-change interrupt (PCINT0)

PC7 13, LED_BUILTIN LED Jaune

Ligne donnée LCD DB6

Timer4 PWM output A (OC4A)

Timer3 input capture pin (ICP3)

Divided system clock output (CLKO)

PD5 30, LED_BUILTIN_TX LED verte (TX)

Bouton utilisateur B

Ligne donnée LCD DB7

UART horloge externe (XCK1)

UART contrôle flux (CTS)

PD7 6, A7, 25 PWM Buzzer Entrée analogique (ADC10)

Timer4 PWM output D (OC4D)

Timer0 counter source (T0)

PF6 A1, 19 Entrée tension piles (VIN/3) Entrée analogique (ADC6)

JTAG test data out (TDO)

PB6 10, A10, 28 PWM moteur gauche Entrée analogique (ADC13)

Timer1 PWM output B (OC1B)

Timer4 PWM output B (OC4B)

Pin-change interrupt (PCINT6)

PB2 16, MOSI Direction Moteur gauche SPI MOSI

Pin-change interrupt (PCINT2)

ISP ligne programmation (PDI)

PB5 9, A9, 27 PWM moteur droit Entrée analogique (ADC12)

Timer1 PWM output A (OC1A)

Timer4 PWM output B (OC4B)

Pin-change interrupt (PCINT5)

PB1 15, SCK Direction moteur droit SPI Horloge (SCK)

Pin-change interrupt (PCINT1)

Ligne programmation ISP (SCK)

PB4 8, A8, 26 Entrée XOR de l'encodeur à gauche Entrée analogique (ADC11)

Pin-change interrupt (PCINT4)

PE2 - Entrée encodeur à gauche Hardware bootloader select (HWB)
PE6 7 Entrée XOR de l'encodeur à droite Entrée négative du comparateur analogique (AIN0)

External interrupt source (INT6)

PF0 A5, 23 Entrée encodeur à droite Entrée analogique (ADC0)
PD0 3, SCL Horloge I2C pour communication Raspberry Pi et capteurs inertiels Timer0 PWM output B (OC0B)

External interrupt source (INT0)

PD1 2, SDA Donnée I2C pour communication Raspberry Pi et capteurs inertiels External interrupt source (INT1)
PD2 0 entrée/sortie disponible UART réception (RXD1)

External interrupt source (INT2)

PD3 1 entrée/sortie disponible UART émission (TXD1)

External interrupt source (INT3)

PC6 5 entrée/sortie disponible Timer3 PWM output A (OC3A)

Timer4 PWM output A (OC4A)

PD6 12, A11, 29 entrée/sortie disponible Entrée analogique (ADC9)

Timer4 PWM output D (OC4D)

Timer1 counter source (T1)

PF7 A0, 18 entrée/sortie disponible Entrée analogique (ADC7)

JTAG test data in (TDI)

PF5 A2, 20 entrée/sortie disponible Entrée analogique (ADC5)

JTAG test mode select (TMS)

PF4 A3, 21 entrée/sortie disponible Entrée analogique (ADC4)

JTAG test clock (TCK)

PF1 A4, 22 entrée/sortie disponible Entrée analogique (ADC1)
RESET - Bouton Reset Résistance Pull-up interne, activé au niveau BAS
AREF - - Référence analogique



Basé sur "Guide utilisateur de la carte de contrôle Romi 32U4" de Pololu (https://www.pololu.com/docs/0J69) - Traduit en Français par shop.mchobby.be CC-BY-SA pour la traduction
Toute copie doit contenir ce crédit, lien vers cette page et la section "crédit de traduction". Traduit avec l'autorisation expresse de Pololu (www.pololu.com)

Based on "Pololu Romi 32U4 Control Board User’s Guide" from Pololu (https://www.pololu.com/docs/0J69) - Translated to French by shop.mchobby.be CC-BY-SA for the translation
Copies must includes this credit, link to this page and the section "crédit de traduction" (translation credit). Translated with the Pololu's authorization (www.pololu.com)