Rpbasic-52 programming guide, Idle – Remote Processing BASIC 52 User Manual
Page 65

RPBASIC-52 PROGRAMMING GUIDE
2-46
IDLE
Syntax:
IDLE [option]
Where: option specifies a card dependent mode.
Function:
Suspends p rogram ex ecution and w aits for an interrupt.
Mode:
R U N
Use:
IDLE
Cards:
All. Variations a re card depen dent.
D E S C R IP T I ON
Different cards have a variety of parameters. Refer to your hardware manual for more information.
U s e th i s c o m m a nd t o s u sp e n d p r og r am e x e cu t io n a nd w a it f or a n i n te r ru p t. A n in t er r up t is f ro m a n O N T IC K ,
ONITR, ON COUN T, ON CO M$, ON LINE , or ON KEYPA D comm and.
RELATED none
ERRORS
none
EXAMPLE
10 ONITR 0,1000
.
.
Other initialization
.
200 IDLE
Wait for interrupt
.
.
On exit from idle, continue program
.
1000 RETI
Simply ex it