Remote-processing CAMBASIC Manuale Utente Pagina 44

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 208
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 43
Commands - 11
BIT
Process Function
SYNTAX: n = BIT(I/O address, bit)
PURPOSE: To read a specified bit at a specified I/O address.
REMARK S: This function returns a “1” if the bit is high and a “0” if it is low.
This function will operate only with I/O addresses, not memor y addresses.
RELATED: BIT statement, INP, ON BIT, OUT
EXAMPLE: 10 OUT &10,209
15 FOR X = 0 TO 7
20 PRINT BIT(&10,X) ;
30 NEXT : PRINT
RUN
1 1 0 1 0 0 0 1
ERROR: < Data negative > for I/O address, bit
< Data out of range > if bit > 7
< Data > 65,535> for I/O addre ss
Vedere la pagina 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 207 208

Commenti su questo manuale

Nessun commento