User`s manual

CHAPTER 3 PROGRAMMING REFERENCE
37
3.4.19. TIMEOUT Purpose :
Purpose :
This command sets the timeout period. When the bus handshake is stuck, the called
I/O functions will terminate at the time specified and the timeout flag will be set.
Offset :
TIMEOUT%=45
Syntax :
CALL TIMEOUT%(T%) ----BASIC
CALL ABSOLUTE(T%,TIMEOUT%) ----BASIC Compiler
Parameter:
T% - T% = 0 Disable the timeout command.
T% = 1 to 32767 Timeout period is T% units.
T% = -1 to -32767 Timeout period is (65536+T%) units.
Bus Activity :
None.
Remark :
1. The unit of the timeout period depends on the execution speed of the CPU. For PC/
XT of 4.77 MHz clock rate, the unit is one millisecond. For PC/AT and higher clock
rate CPU, the unit is less.
2. The timeout period is set to 10000 units each time the INIT command is called.