Modifications

Sauter à la navigation Sauter à la recherche
87 octets ajoutés ,  18 avril 2015 à 21:09
Ligne 80 : Ligne 80 :     
== Créer un compteur de microsecondes ==
 
== Créer un compteur de microsecondes ==
You can use a timer to create a microsecond counter, which might be useful when you are doing something which requires accurate timing. We will use timer 2 for this, since timer 2 has a 32-bit counter (so does timer 5, but if you use timer 5 then you can’t use the Servo driver at the same time).
+
Vous pouvez utiliser un ''timer'' pour créer un compteur de microsecondes, ce qui peut s'avérer très pratique lorsque vous réalisez quelque-chose qui nécessite un chronométrage préçis. Nous allons utiliser le timer We will use timer 2 for this, since timer 2 has a 32-bit counter (so does timer 5, but if you use timer 5 then you can’t use the Servo driver at the same time).
    
We set up timer 2 as follows:
 
We set up timer 2 as follows:
29 917

modifications

Menu de navigation