42
Coyote (BL2500)
SIMPLE3WIRE.C
—Demonstrates basic initialization for a simple RS-232 3-wire loop-
back displayed in the STDIO window.
SWITCHCHAR.C
—This program transmits and then receives an ASCII string on Serial
Ports E and F when a switch is pressed. It also displays the serial data received from
both ports in the STDIO window.
SIMPLE485MASTER.C
—This program demonstrates a simple RS-485 transmission of
lower case letters to a slave. The slave will send back converted upper case letters back
to the master Coyote and display them in the STDIO window. Use SIMPLESLAVE.C to
program the slave.
SIMPLE485SLAVE.C
—This program demonstrates a simple RS-485 transmission of
lower case letters to a master Coyote. The slave will send back converted upper case
letters back to the master Coyote and display them in the STDIO window. Use
SIMPLEMASTER.C
to program the master Coyote.
4.2.4 A/D Converter Inputs
The following sample programs are found in the ADC subdirectory in SAMPLES\BL2500.
AD0.C
—This program reads and displays the voltage on channel AD0 and its equiva-
lent value to the STDIO window.
ADCCALIB.C
—This program demonstrates how to recalibrate one single-ended A/D
converter channel using two known voltages to generate constants that are then rewritten
into the user block data area.
COF_ANAIN.C
—This program demonstrates the use of the analog input driver as a
cofunction. Connect DA1 to AD0 to provide an input voltage. When the program runs,
it will read the input voltage ten times while another costate is executed concurrently.
The values will be printed out at the end of the program.
DA2AD.C
—This program allows the user to input a voltage in the Dynamic C STDIO
window for DA1 to output. The user needs to connect DA1 to AD0. The program will
display the voltage read in the STDIO window.
4.2.5 D/A Converter Outputs
The following sample program is found in the DAC subdirectory in SAMPLES\BL2500.
DAC.C
—Demonstrates pulse-width modulation as an analog output voltage by display-
ing the voltage entered and measuring the voltage output.
DACCALIB.C
—Demonstrates how to recalibrate one single-ended analog output chan-
nel using two known voltages to generate constants for that channel that are then rewrit-
ten into the user block data area.
PWM.C
—Demonstrates pulse-width modulation as an analog output.