Rpbasic-52 programming guide – Remote Processing BASIC 52 User Manual
Page 142

RPBASIC-52 PROGRAMMING GUIDE
2-123
CONFIG FREQ
Syntax:
C O N F I G F R EQ channel,interval
Where: channel = counter num ber, 0 or 1
interval = n u m be r of 5 m il l i- s ec o n d p e ri o ds b e tw e e n re a d in g s . R a n g e i s 1 t o 25 5 . A n
interval of 0 turns off this multitasking routine.
Function:
Sets up multitasking to read a counter every interval. The counter is read using the FREQ com mand.
Mode:
Comm and, Run
Use:
CONFIG FREQ 0,100
Cards:
RPC-210, RPC-320, RPC -330 (cards with LSI 7166 counter chip)
D E S C R IP T I ON
Comm and sets up RPB ASIC operating system so FREQ function can operate. This comm and defines a
counter and time interval between counter reads.
Longer interval smooths out readings. Short intervals (interval between 1 and 10) are not recommended.
RELATED
FREQ
E R R O R
B A D A R G U M E N T channel > 0 or 1 (depending upon the card)
interval > 255
EXAMPLE
See the FREQ command for an example.