Remote-processing BASIC 52 Instrukcja Użytkownika Strona 42

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 163
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 41
RPBASIC-52 PROGRAMMING GUIDE
2-23
COUNT (statement)
Syntax: COUNT counter ,data
Where: counter = 0 or 1
data = 0 to 16777215
Function: Writes data to spec ified up/dow n coun ter.
Mode: Command, Run
Use: COUNT 0,A
Cards: RPC-320, RPC-330
DESCRIPTION
Use this command to write 3 data bytes to the preset register (PR) in the LSI 7166 counter. This command
does not transfer PR to the counter (CNTR). To do this, execute:
LINEB 6,X,8
Where: X = 1 for counter 0, 3 for counter 1.
NOTE: The sign of data is ignored. It can be a p ositive or negative nu mber. When neg ative, data is simply
treated as a positive num ber.
Decimal portion of data is ignored. For exam ple, if data = 100.99999, 100 is loaded into the counter.
See your hardware manual for more information about using the LSI 7166 chip.
Software counters 4 - 11 cannot be set.
RELATED
COUNT (function)
ERROR
BAD ARGUMENT When counter <> 0 or data out of range.
EXAMPLE
10 COUNT 0,124735
Przeglądanie stron 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 162 163

Komentarze do niniejszej Instrukcji

Brak uwag