Remote-processing CAMBASIC Instrukcja Użytkownika Strona 52

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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
Przeglądanie stron 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag