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 address
BIT Comm and sets a bit at an I/O address
CONFIG
PIO
Configures J3 I/O port
INP Returns a byte from an I/ O address
LINE Returns status of an opto line
OPTO Sets an opto module output
OUT Writes a byte to an I/ O address
PULSE 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 referenced in your design. 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 addresses for each of the 8 bit
digital ports.
Connector J2. Addresses 0-2.
Port A = 0
Port B = 1
Port C = 2
Connector J3. Addresses &40-&42.
Port A = &40
Port B = &41
Port C = &42
Commentaires sur ces manuels