44
Fox (LP3500)
4.2.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.2.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.2.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.2.8 LP3500 Calibration
The following sample programs are found in the ADC subdirectory in SAMPLES\LP3500.
AD_CAL_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.
AD_CAL_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_CH.C
—This sample program demonstrates how to recalibrate one differ-
ential 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.