Chapter 6 digital lines – Remote Processing RPC-2350 User Manual

Page 38

Advertising
background image

CHAPTER 6

DIGITAL LINES

6-5

COMMANDS

The following table lists CAMBASIC commands used
for digital I/O.

Command

Function

BIT

Function returns status of bit at an
I/O add ress

BIT

Comm and sets a bit at an I/O add ress

CON FIG
PIO

Configures J3 I/O port

I N P

Returns a byte fr om an I/ O address

L I N E

Returns status of an opto line

OPTO

Sets an opto module output

O U T

Writes a byte to an I/ O address

PUL SE

Reads or writes a pulse at a por t.

See also ON BIT, ON C OUNT , ON INP, and related
statements.

DIGITAL I/O WORKSHEET

Use the following tables to help you plan how digital
lines will be used and refe renced in your de sign. It will
also help you spot potential conflicts with multiple use
lines (such as keypad port on J3).

Copy these pages if necessary.

The follow ing are the addresse s for eac h of the 8 bit
digital ports.

Connector J2. Addresses 0-2.
Port A = 0
Por t B = 1
P o r t C = 2

Connector J3. Addresses &40-&42.
Port A = &40
Port B = &41
Port C = &42

Advertising