
DIGITAL AND OPTO PORTS
SECTION 6
Page 6-7 RPC -320
COMMANDS
The following tables shows the RPBASIC-52 comm ands
used for digital I/O.
Comm and
Function
C O N F I G L IN E
Configu res I/ O por ts
C O U N T
Returns number of pulses at a line.
L I N E
Function retur ns status of an opto
module as a 0 or 1.
L I N E
Statemen t turns on or off an opto
module.
LINE B
Function returns 8 data bits from any
I/O type device.
LINE B
S ta te m en t w r it es 8 d a ta b it s t o a n y I / O
type device.
LINE #
Function re turns status of line at J3
connector as a 0 or 1.
LINE #
Statement wr ites data to a line at J3
connector as a 0 or 1.
O N C O U N T
Counts pulses and optional generates an
interr upt.
O N L I N E
Generates an interrupt when a line
changes.
P W M
Sets PWM param eters for any line.