Remote-processing CAMBASIC Manual de usuario Pagina 52

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 208
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 207 208

Comentarios a estos manuales

Sin comentarios