Différences entre versions de « RASP-FT232H-MPSSE-Config »

De MCHobby - Wiki
Sauter à la navigation Sauter à la recherche
Ligne 11 : Ligne 11 :
 
{{traduction}}
 
{{traduction}}
  
In addition to the serial protocol pins above, the MPSSE mode allows you to control other pins as general purpose digital inputs or outputs. These are great for controlling chip select, reset, or other lines on chips. You can even use the GPIO to read switches, blink LEDs, and more!
+
En plus des broches des procotoles séries ci-dessus, le mode MPSSE vous permet de contrôler les autres broches comme des GPIOs standard (broches d'entrées/sorties). C'est très utile pour contrôler les lignes chip select, reset et autres des circuits intégrés que vous brancherez sur le FT232H. Vous pouvez utiliser les GPIO pour lire l'état de bouton, faire clignoter des LEDs, etc.
  
The pins which are controllable as GPIO in MPSSE mode are '''D4''' to '''D7''' and '''C0''' to '''C7''', for a total of 12 GPIO pins. These pins can be configured individually as digital inputs or outputs.
+
Les broches qui sont contrôlable en tant que GPIO en mode MPSSE sont '''D4''' à '''D7''' ainsi que '''C0''' à '''C7'''. Cela fait un total de 12 broches GPIO. Ces broches peuvent être configurées individuellement en tant que entrée ou sortie digitale.
  
Note that pins '''C8''' and '''C9''' are not controllable as GPIO pins. These two pins have a special function that can be set in the EEPROM of the chip--you'll learn more about these later.
+
{{underline|Note:}} les broches '''C8''' et '''C9''' ne sont '''pas controllable en tant que GPIO'''. Ces deux broches ont une fonction spéciale qui permet de configurer l'EEPROM du composant--nous en apprendrons plus là dessus plus loin.
  
To use the MPSSE mode of the chip you'll need to use some special software and programming libraries. There are actually a few options for software that can talk to the FT232H and its MPSSE component:
+
Pour utiliser le mode MPSSE, il sera nécessaire d'utiliser quelques logiciels spéciaux et bibliothèques de programmation ad-hoc. Au moment où nous rédigeons ces lignes, il y a relativement peu d'option logicielle pour dialoguer avec un FT232 en mode MPSSE:
  
 
+
* [http://www.ftdichip.com/Drivers/D2XX.htm Bibliothèque et pilotes officiel D2XX de FTDI].
* [http://www.ftdichip.com/Drivers/D2XX.htm FTDI's official D2XX drivers and libraries].
+
** Ces pilotes et bibliothèques sont produit par FTDU et offre un accès bas niveau aux fonctions offertes par le composant. Il existe des versions binaires de la bibliothèque pour Windows, Mac OSX et Linux.  C'est une bonne option à envisager si vous rencontrez des limitations ou problèmes avec les autres pilotes. Il existe un bon [http://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdf guide de programmation chez FTDI] ainsi que [http://www.ftdichip.com/Support/FTSwExamples.htm des exemples de code].
** These drivers and libraries are produced by FTDI and provide low level access to FTDI chip functions. There are binary versions of the library available for Windows, Mac OSX, and Linux.  This is a good option to consider if you run into limitations or issues with other drivers. There's a good [http://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdf programming guide] and [http://www.ftdichip.com/Support/FTSwExamples.htm example] code available too.
+
* Les bibliothèques FTDI [http://www.ftdichip.com/Support/SoftwareExamples/MPSSE/LibMPSSE-I2C.htm LibMPSSE-I2C] et [http://www.ftdichip.com/Support/SoftwareExamples/MPSSE/LibMPSSE-SPI.htm LibMPSSE-SPI] .
* FTDI's [http://www.ftdichip.com/Support/SoftwareExamples/MPSSE/LibMPSSE-I2C.htm LibMPSSE-I2C] and [http://www.ftdichip.com/Support/SoftwareExamples/MPSSE/LibMPSSE-SPI.htm LibMPSSE-SPI] libraries.
+
** Ces bibliothèques sont basées sur les pilotes D2XX (ci-dessus) et offre une interface plus simple pour les communications I2C et SPI avec les composants FT232H en mode MPSSE.
** These libraries build on top of the D2XX driver above and provide a simpler interface to I2C and SPI communication with the FT232H's MPSSE component.
+
* [http://www.intra2net.com/en/developer/libftdi/ Bibliothèque libFTDI]
* [http://www.intra2net.com/en/developer/libftdi/ libFTDI library]
 
 
** This is an open source library that's similar to the D2XX library and provides a low level interface to FTDI chip functions.  There's even a Python interface which makes this library a little easier to use compared to the D2XX library.
 
** This is an open source library that's similar to the D2XX library and provides a low level interface to FTDI chip functions.  There's even a Python interface which makes this library a little easier to use compared to the D2XX library.
 
* [https://code.google.com/p/libmpsse/ libmpsse library]
 
* [https://code.google.com/p/libmpsse/ libmpsse library]

Version du 23 février 2017 à 12:01


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

MPSSE signifie Multi-Protocol Synchronous Serial Engine (Moteur Multi-protocol série synchrone). C'est le coeur du du composant FT232H qui permet de supporter plusieurs protocols tels que I2C, SPI et plus. Lorsque le composant est en mode MPSSE les broches D0 à D3 sont altérée pour supporter des fonctions séries spéciales:

  • D0 - Signal d'horloge (sortie). Cette ligne peut être configurée comme une horloge qui fonctionne a une vitesse entre ~450Hz à 30Mhz.
  • D1 - Sortie Série (Serial data output). Broche utilisé pour sortir un signal série, comme la ligne MOSI dans une connexion SPI.
  • D2 - Entrée série (Serial data input). Broche utilisée pour l'entrée sur signal série,, comme la ligne MISO d'une connexion SPI.
  • D3 - Signal de sélection (Serial select signal). Il s'agit du signal "chip select" ou "chip enable" qui informe le périphérique connecté que le FT232H est prêt à dialogué avec-lui.

En plus des broches des procotoles séries ci-dessus, le mode MPSSE vous permet de contrôler les autres broches comme des GPIOs standard (broches d'entrées/sorties). C'est très utile pour contrôler les lignes chip select, reset et autres des circuits intégrés que vous brancherez sur le FT232H. Vous pouvez utiliser les GPIO pour lire l'état de bouton, faire clignoter des LEDs, etc.

Les broches qui sont contrôlable en tant que GPIO en mode MPSSE sont D4 à D7 ainsi que C0 à C7. Cela fait un total de 12 broches GPIO. Ces broches peuvent être configurées individuellement en tant que entrée ou sortie digitale.

Note: les broches C8 et C9 ne sont pas controllable en tant que GPIO. Ces deux broches ont une fonction spéciale qui permet de configurer l'EEPROM du composant--nous en apprendrons plus là dessus plus loin.

Pour utiliser le mode MPSSE, il sera nécessaire d'utiliser quelques logiciels spéciaux et bibliothèques de programmation ad-hoc. Au moment où nous rédigeons ces lignes, il y a relativement peu d'option logicielle pour dialoguer avec un FT232 en mode MPSSE:

  • Bibliothèque et pilotes officiel D2XX de FTDI.
    • Ces pilotes et bibliothèques sont produit par FTDU et offre un accès bas niveau aux fonctions offertes par le composant. Il existe des versions binaires de la bibliothèque pour Windows, Mac OSX et Linux. C'est une bonne option à envisager si vous rencontrez des limitations ou problèmes avec les autres pilotes. Il existe un bon guide de programmation chez FTDI ainsi que des exemples de code.
  • Les bibliothèques FTDI LibMPSSE-I2C et LibMPSSE-SPI .
    • Ces bibliothèques sont basées sur les pilotes D2XX (ci-dessus) et offre une interface plus simple pour les communications I2C et SPI avec les composants FT232H en mode MPSSE.
  • Bibliothèque libFTDI
    • This is an open source library that's similar to the D2XX library and provides a low level interface to FTDI chip functions. There's even a Python interface which makes this library a little easier to use compared to the D2XX library.
  • libmpsse library
    • Like the libMPSSE-I2C and libMPSSE-SPI libraries, this library builds on the libFTDI library and provides a simpler interface for I2C and SPI protocols using the MPSSE component. One thing to note is that his library is currently only supported on Mac OSX and Linux.
  • Adafruit Python GPIO library
    • To make using the FT232H simpler, Adafruit's Python GPIO library has been updated to include a simple interface for accessing GPIO, SPI, and I2C on the FT232H with the Python programming language. Using this library you can control the GPIO pins and send or received SPI & I2C commands much like programming those interfaces on a Raspberry Pi or BeagleBone Black. This library is built on top of the libFTDI library and supports Windows, Mac OSX, and Linux platforms.

In this guide I'll show you how to setup and use the Adafruit Python GPIO library to access GPIO, SPI, and I2C devices using the FT232H board's MPSSE component. You can write Python programs to control GPIO pins and send/receive SPI & I2C commands directly from your computer using the FT232H breakout.

One thing to note, when you're using the MPSSE mode of the FT232H the serial UART mode will be disabled. This means you can't use both the serial UART and MPSSE GPIO, SPI, I2C, etc. modes of the chip at the same time.

To learn how to enable MPSSE modes and install the Adafruit Python GPIO library, continue on to the next page that's appropriate for your platform (Windows, Mac OSX, or Linux).


Source: Adafruit FT232H Breakout Add a serial protocol 'swiss army knife' to your computer and talk directly to devices with SPI, I2C, serial UART, GPIO's, and more!
Créé par Toni DiCola pour AdaFruit Industries.

Traduction réalisée par Meurisse D pour MCHobby.be.

Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : «  Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.

L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.

Traduit avec l'autorisation d'AdaFruit Industries - Translated with the permission from Adafruit Industries - www.adafruit.com