Remote-processing BASIC 52 Manuale Utente Pagina 74

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 163
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 73
RPBASIC-52 PROGRAMMING GUIDE
2-55
LINEB (Function)
Syntax: A = LINEB(i/o bank,add ress)
Where: i/o bank = 0 to 7. Specific functions are card de pendent. Refer to your hardware manual.
address = device dependent. Usually it is 0 to 3.
Function: Reads a byte from an I/O device.
Mode: Command, Run
Use: A = LINEB(3,0) Reads port A of 8255 at digital port.
Cards: All. i/o bank is unique to each card.
DESCRIPTION
This function is equivalent to INP in other BASICs. Data is read 8 bits at a time in contrast to other LINE
functions which return 1 bit at a time. The i/o bank selects a particular I/O device listed in your hardware
manual.
Use this command to read devices and obtain data not otherwise available using RPBASIC-52.
RELATED
LINE, LINE# (function), LINE, LINE#, LINEB (statement), CONFIG LINE
ERROR
BAD ARGUMENT i/o bank > 7
EXAMPLE
The following example reads all 8 lines at port A on the digital I/O port.
100 A = LINEB(3,0)
Vedere la pagina 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 162 163

Commenti su questo manuale

Nessun commento