DIGITAL AND OPTO PORTS

SECTION 6

COMMANDS

The following tables shows the RPBASIC-52 comm ands used for digital I/O.

Comm and

Function

CONFIG LINE

Configu res I/ O por ts

COUNT

Returns number of pulses at a line.

LINE

Function retur ns status of an opto

 

module as a 0 or 1.

LINE

Statemen t turns on or off an opto

 

module.

LINE B

Function returns 8 data bits from any

 

I/O type device.

LINE B

Statement writes 8 data bits to any 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.

ON COUNT

Counts pulses and optional generates an

 

interr upt.

ON LINE

Generates an interrupt when a line

 

changes.

PWM

Sets PWM param eters for any line.

Page 6-7 RPC -320

Page 29
Image 29
Remote Technologies RPC-320 manual Config Line, Line B, Line #, On Count, On Line, Pwm