User’s Manual
39
4.3.3 Serial Communication
The following sample programs are found in the
RS232
subdirectory in
SAMPLES\LP3500
.
•
SIMPLE3WIRE.C
—This program demonstrates basic initialization for a simple RS-232
3-wire loopback displayed in the
STDIO
window.
The following sample programs are found in the
RS485
subdirectory in
SAMPLES\LP3500
.
•
SIMPLE485MASTER.C
—This program demonstrates a simple RS-485 transmission of
lower case letters to a slave LP3500. The slave will send back converted upper case let-
ters back to the master LP3500 and display them in the
STDIO
window. Use
SIMPLE485SLAVE.C
to program the slave LP3500.
•
SIMPLE485SLAVE.C
—This program demonstrates a simple RS-485 transmission of
lower case letters to a slave LP3500. The slave will send back converted upper case let-
ters back to the master LP3500 and display them in the
STDIO
window. Use
SIMPLE485MASTER.C
to program the master LP3500.
4.3.4 A/D Converter Inputs
The following sample programs are found in the
ADC
subdirectory in
SAMPLES\LP3500
.
•
AD_RDVOLT_ALL.C
—This program reads and displays the voltage and equivalent values
of each single-ended A/D converter channel. Coefficients are read from the A/D con-
verter's simulated EEPROM in flash memory to compute the equivalent voltages. Com-
puted raw data and equivalent voltages are displayed in the
STDIO
window.
•
AD_RDVOLT_CH.C
—This program reads and displays the voltage and equivalent values
of one single-ended A/D converter channel. Coefficients are read from the A/D con-
verter's simulated EEPROM in flash memory to compute the equivalent voltages. Com-
puted raw data and equivalent voltages are displayed in the
STDIO
window.
•
AD_RDDIFF_CH.C
—This program demonstrates reading one differential A/D converter
channel. Coefficients are read from the A/D converter's simulated EEPROM in flash
memory to compute the equivalent voltages. Computed raw data and equivalent volt-
ages are displayed in the
STDIO
window.
•
AD_RDMA_CH.C
—This program demonstrates reading one milliampere A/D converter
channel. Coefficients are read from the A/D converter's simulated EEPROM in flash
memory to compute the equivalent currents. Computed raw data and equivalent cur-
rents are displayed in the
STDIO
window.
•
AD_SAMPLE.C
—This program demonstrates how to use the A/D low-level driver. The
program will display the average voltage that is present on an A/D converter channel.
The particular channel and the number of samples may be changed by the user.
Содержание Fox LP3500
Страница 1: ...Fox LP3500 C Programmable Single Board Computer User s Manual 019 0111 041029 E ...
Страница 6: ...Fox LP3500 ...
Страница 14: ...8 Fox LP3500 ...
Страница 22: ...16 Fox LP3500 ...
Страница 86: ...80 Fox LP3500 ...
Страница 120: ...114 Fox LP3500 ...
Страница 130: ...124 Fox LP3500 ...
Страница 134: ...128 Fox LP3500 ...
Страница 138: ...132 Fox LP3500 ...
Страница 142: ...136 Fox LP3500 ...
Страница 144: ......