- No category
advertisement
D.2 Digital I/O (OP68xx.LIB) int digIn(int channel);
Reads the state of an input channel.
A runtime error will occur if
brdInit
was not executed before executing
digIn
, or when
channel
is out of range.
PARAMETER channel
is the input channel number (0–12), where IN00–IN12 are the normal user digital inputs.
RETURN VALUE
The state of the input (0 or 1).
SEE ALSO brdInit, digOut, ledOut
void digOut(int channel, int value);
Sets the state of a digital output (
OUT00–OUT10)
.
Remember to call the
brdInit
function before executing this function.
A runtime error will occur if
brdInit
was not executed before executing
digOut
, or when
channel
or
value
is out of range.
NOTE: The LEDs and digital outputs OUT00–OUT06 are driven by the same driver chip. Do not use both
ledOut
and
digOut
to control the same LED or digital output in a given application.
PARAMETERS channel
is the output channel number (0–10).
value
is the output value (0 or 1).
SEE ALSO brdInit, digIn, ledOut
User’s Manual 71
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 5 1.1 Description
- 5 1.2 Features
- 6 1.3 Development and Evaluation Tools
- 6 1.3.1 Tool Kit
- 7 1.3.2 Software
- 8 1.4 CE Compliance
- 9 1.4.1 Design Guidelines
- 9 1.4.2 Interfacing the OP6800 to Other Devices
- 11 2.1 Connections
- 14 2.2 Demonstration Program on Power-Up
- 14 2.3 Display Contrast Adjustment
- 15 2.4 Programming Cable Connections
- 16 2.5 Installing Dynamic C
- 16 2.6 Starting Dynamic C
- 17 2.7 PONG.C
- 17 2.8 Where Do I Go From Here?
- 20 3.1 Pinouts
- 21 3.2 Digital I/O
- 21 3.2.1 Digital Inputs
- 22 3.2.2 Digital Outputs
- 23 3.3 Serial Communication
- 23 3.3.1 RS
- 23 3.3.2 RS
- 25 3.3.3 Programming Port
- 26 3.3.4 Ethernet Port (OP6800 models only)
- 27 3.4 Memory
- 27 3.4.1 SRAM
- 27 3.4.2 Flash Memory
- 28 3.5 Keypad Labeling
- 32 4.1 Programming Cable
- 32 4.1.1 Switching Between Program Mode and Run Mode
- 32 4.1.2 Detailed Instructions: Changing from Program Mode to Run Mode
- 32 4.1.3 Detailed Instructions: Changing from Run Mode to Program Mode
- 33 4.2 OP6800 Libraries
- 34 4.3 Sample Programs
- 34 4.3.1 Board ID
- 34 4.3.2 Demonstration Board
- 35 4.3.3 Digital I/O
- 35 4.3.4 Serial Communication
- 35 4.3.5 LCD/Keypad Module Sample Programs
- 36 4.3.6 TCP/IP Sample Programs
- 37 4.4 Font and Bitmap Converter
- 39 5.1 TCP/IP Connections
- 41 5.2 TCP/IP Sample Programs
- 41 5.2.1 How to Set IP Addresses in the Sample Programs
- 42 5.2.2 How to Set Up your Computer’s IP Address for a Direct Connection
- 43 5.2.3 Run the PINGME.C Demo
- 43 5.2.4 Running More Demo Programs With a Direct Connection
- 44 5.2.5 LCD/Keypad Sample Programs Showing TCP/IP Features
- 45 5.3 Where Do I Go From Here?
- 47 6.1 Installation Guidelines
- 48 6.2 Mounting Instructions
- 48 6.2.1 Bezel-Mount Installation
- 52 A.1 Electrical and Mechanical Specifications
- 55 A.2 Conformal Coating
- 56 A.3 Jumper Configurations
- 57 A.4 Use of Rabbit 2000 Parallel Ports
- 59 A.5 I/O Address Assignments
- 61 B.1 Power Supplies
- 62 B.2 Batteries and External Battery Connections
- 62 B.2.1 Battery-Backup Circuit
- 63 B.2.2 Power to VRAM Switch
- 63 B.2.3 Reset Generator
- 64 B.3 Chip Select Circuit
- 66 C.1 Mechanical Dimensions and Layout
- 67 C.2 Power Supply
- 69 C.3 Using the Demonstration Board
- 74 D.1 Board Initialization (OP68xx.LIB)
- 75 D.2 Digital I/O (OP68xx.LIB)
- 76 D.3 Serial Communication (OP68xx.LIB)
- 78 D.4 LEDs (OP68xx.LIB)
- 79 D.5 LCD Display
- 96 D.6 Keypad