Remote-processing CAMBASIC Instrukcja Użytkownika Strona 180

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 208
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 179
CONFIG C ommands - 7
CONFIG COUNT
Tasking Statement
SYNTAX: CONFIG COUNT number,address,bit [,preset] [,AUTO]
PURPOSE: To define the characteristics of a software counter.
REMARK S: The CONFIG COU NT statement is the initial step in setting up a software counter. Up to eight
counters can be defined. A counter input may be any digital input.
The counter number has a range of 0 to 7. The address is the address of a parallel I/O port. The bit
param eter spec ifies bit 0 through 7 of that port.
The optional preset parameter is only used when you want an interrupt at a specified number of
counts. When the optional AUTO parameter is specified, the counter will automatically reset to zero
when the preset is reached.
For additional information see the M ultitasking Chapters.
RELATED: ON COUNT, START COUNT, STOP COUNT, RESUME COUNT
EXAMPLE: 10 CONFIG COUNT 4,32,2,5000
This configures counter 4 at address 32, and bit 2 with a preset count of 5000.
ERROR: < Data negative> for number, address, bit, preset
< Data > 65,535> for preset and address
< Data out of range> if number or bit > 7
Przeglądanie stron 179
1 2 ... 175 176 177 178 179 180 181 182 183 184 185 ... 207 208

Komentarze do niniejszej Instrukcji

Brak uwag