User’s Manual
43
4.2.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.2.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.