40
Wildcat (BL2000)
4.2.5 D/A Converter Outputs
The following sample programs are found in the
DAC
subdirectory in
SAMPLES/BL2000
.
•
DACAL.C
—This program demonstrates how to recalibrate an D/A converter channel
using two known voltages, and defines the two coefficients, gain and offset, that will be
rewritten into the D/A converter's EEPROM simulated in flash memory. Note that this
sample program will overwrite the calibration constants set at the factory.
•
DAOUT1.C
—This program outputs a voltage that can be read with a voltmeter. The out-
put voltage is computed using the calibration constants that are read from the EEPROM
simulated in flash memory.
•
DAOUT2.C
—This program demonstrates the use of both the D/A and the A/D convert-
ers. The user selects both the D/A converter and A/D channel to be used, then sets the
D/A converter output voltage to be read by the A/D channel. All activity will be dis-
played in the
STDIO
window.
4.2.6 Real-Time Clock
If you plan to use the real-time clock functionality in your application, you will need to set
the real-time clock. You may set the real-time clock using the
SETRTCKB.C
sample pro-
gram from the Dynamic C
SAMPLES\RTCLOCK
folder. The
RTC_TEST.C
sample pro-
gram in the Dynamic C
SAMPLES\RTCLOCK
folder provides additional examples of how
to read and set the real-time clock
4.2.7 TCP/IP Sample Programs
TCP/IP sample programs are described in Chapter 5.
Содержание BL2020
Страница 1: ...Wildcat BL2000 C Programmable Single Board Computer with Ethernet User s Manual 019 0094 090529 O...
Страница 38: ...34 Wildcat BL2000...
Страница 84: ...80 Wildcat BL2000...
Страница 88: ...84 Wildcat BL2000...
Страница 92: ...88 Wildcat BL2000...
Страница 94: ......