Remote-processing CAMBASIC Manuel d'utilisateur Page 52

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 208
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 51
Commands - 19
CLEAR TICK
Tasking Statement
SYNTAX: CLEAR TICK n
PURPOSE: To reset the internal TICK clock to zero. This does not affect a calendar/clock or the counter for the
ON T ICK statem ent.
REMARK S: There are three TICK timers in CAMBASIC. The parameter n is the timer number and the range is
0 to 2. All TICK timers are independent. This statement can be used as an electronic stop watch. It
can be used in conjunction with the ON BIT statement to measure how long an input is active.
See the Multitasking Chapter for more information.
RELATED: ON TICK, TICK
EXAMPLE: 10 CLEAR TICK 0
20 IF BIT(&18,0) = 1 THEN 20
30 PRINT TICK (0)
RUN
37.20
This example measured the elapsed time for bit 0 of address &18 to go high.
ERROR: < Data out of range> - if n>2
< Data negative> - for n
Vue de la page 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 207 208

Commentaires sur ces manuels

Pas de commentaire