40
Fox (LP3500)
4.3.5 PWM Outputs
The following sample program is found in the
IO
subdirectory in
SAMPLES\LP3500
.
•
PWMOUT.C
—This program demonstrates the PWM functions. It will set the PWM chan-
nels, PWM0–PWM2, to the following duty cycles:
PWM Channel 0 to 10%
PWM Channel 1 to 25%
PWM Channel 2 to 50%
All activity will be displayed in the
STDIO
window.
4.3.6 Relay Output
The following sample program is found in the
RELAY
subdirectory in
SAMPLES\LP3500
.
•
SWRELAY.C
—This program demonstrates the relay-switching function call operating on
normal power source. Use the pushbutton switches on the Prototyping Board to switch
the relay between the SET (NO) and RESET (NC) positions. All activity will be dis-
played with the LEDs.
4.3.7 Vcc Monitoring
The following sample program is found in the
POWER
subdirectory in
SAMPLES\LP3500
.
•
VCCMONITOR.C
—This program demonstrates the Vcc monitoring function on AIN7.
All activity will be displayed in the
STDIO
window
4.3.8 LP3500 Calibration
The following sample programs are found in the
ADC
subdirectory in
SAMPLES\LP3500
.
•
ADCAL_ALL.C
—This program demonstrates how to recalibrate all single-ended A/D
converter channels using two known voltages to generate constants for each channel,
and will be written into the user block data area. The program uses the
STDIO
window
to display the voltage that is being monitored.
NOTE:
This sample program will overwrite the calibration constants set at the factory.
•
ADCAL_CHAN.C
—This program demonstrates how to recalibrate one single-ended A/D
converter channel using two known voltages to generate constants for each channel,
and will be written into the user block data area. The program uses the
STDIO
window
to display the voltage that is being monitored.
NOTE:
This sample program will overwrite the calibration constants set at the factory.
•
AD_CALDIFF.C
—This sample program demonstrates how to recalibrate one differential
A/D converter channel using two known voltages to generate constants for that channel
and rewrite the constants into the user block data area. The program uses the
STDIO
window to display the voltage that is being monitored.
NOTE:
This sample program will overwrite the calibration constants set at the factory.
Summary of Contents for Fox LP3500
Page 1: ...Fox LP3500 C Programmable Single Board Computer User s Manual 019 0111 041029 E ...
Page 6: ...Fox LP3500 ...
Page 14: ...8 Fox LP3500 ...
Page 22: ...16 Fox LP3500 ...
Page 86: ...80 Fox LP3500 ...
Page 120: ...114 Fox LP3500 ...
Page 130: ...124 Fox LP3500 ...
Page 134: ...128 Fox LP3500 ...
Page 138: ...132 Fox LP3500 ...
Page 142: ...136 Fox LP3500 ...
Page 144: ......