EasyManua.ls Logo

Rabbit Wildcat BL2000 - D;A Converter Output Sample Programs

Default Icon
94 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Table of Contents

Related product manuals