User`s manual

CHAPTER 3 PROGRAMMING REFERENCE
35
3.4.17. SPOLL
Purpose :
This command conducts a serial poll of the interface bus. It returns the value (0-
255) of an eight-bit byte representing the device’s status.
Offset :
SPOLL%=39
Syntax :
CALL SPOLL%(ADDR%,RESPONSE%) ----BASIC
CALL ABSOLVTE(ADDR%,RESPONSE%,SPOLL%) ----BASIC Compiler
Parameter :
ADDR% - The address of the device to be serial polled. Must be within 0
and 30.
RESPONSE% - An integer with the value 0-255 of an eight bit byte representing
the status of the device specified.
Bus Activity :
ATN is set true.
UNL is sent.
TAD is sent.
MLA is set.
SPE is sent.
ATN is set false.
Data byte is read.
ATN is set true.
SPD is sent.
UNT is sent.