Ligne 49 : |
Ligne 49 : |
| | | |
| == AnalogWrite / PWM on Feather M0 == | | == AnalogWrite / PWM on Feather M0 == |
− | After looking through the SAMD21 datasheet, we've found that some of the options listed in the multiplexer table don't exist on the specific chip used in the Feather M0. | + | After looking through the SAMD21 datasheet, it appears that some of the options listed in the multiplexer table don't exist on the specific chip used in the Feather M0. |
| | | |
| For all SAMD21 chips, there are two peripherals that can generate PWM signals: The Timer/Counter (TC) and Timer/Counter for Control Applications (TCC). Each SAMD21 has multiple copies of each, called 'instances'. | | For all SAMD21 chips, there are two peripherals that can generate PWM signals: The Timer/Counter (TC) and Timer/Counter for Control Applications (TCC). Each SAMD21 has multiple copies of each, called 'instances'. |
Ligne 69 : |
Ligne 69 : |
| * '''TCC[0-2],WO[0-7]''' | | * '''TCC[0-2],WO[0-7]''' |
| | | |
− | En suivant les signaux vers les broches rendues disponibles sir le Feather M0, <font color="red">'''les broches suivantes ne seront pas capable de produire de signal PWM'''</font>:
| + | <div style="margin: 15px 0; display: block; padding: 15px 15px 15px 15px; -webkit-border-radius: 2px; -moz-border-radius: 2px; border-radius: 2px; border: 1px solid #CCC;" > |
− | * '''broche analogique A5''' | + | By following the signals to the pins made available on a Feather M0, <font color="red">'''the following pins would not be able to produce PWM signal'''</font>: |
| + | * '''Analog Pin A5''' |
| | | |
− | Les broches suivantes peuvent être configurées en sortie PWM (sans aucun conflit) aussi longtemps que les broches SPI, I2C et UART gardent leurs fonctions protocole:
| + | The following pins can be configured as PWM (without conflict) as long as the SPI, I2C & UART keeps their protocol functions: |
− | * '''Broches digitales 5, 6, 9, 10, 11, 12 et 13''' | + | * '''Digital pins 5, 6, 9, 10, 11, 12 et 13''' |
− | * '''Broches analogiques A3 et A4''' | + | * '''Analog pins A3 et A4''' |
| | | |
− | Si seules les broches SPI gardent leur fonctions protocole, vous pouvez également faire du PWM sur les broches suivantes:
| + | When only the SPI keeps the protocol function, you can also do PWM on the following pins: |
− | * '''TX''' (broche digitale 1) | + | * '''TX''' (Digital pin 1) |
− | * '''SDA''' (broche digitale 20) | + | * '''SDA''' (Digital pin 20) |
| + | </div> |
| | | |
| == analogWrite() et gamme de valeur PWM == | | == analogWrite() et gamme de valeur PWM == |