![background image](http://html1.mh-extra.com/html/rabbit/bl2100/bl2100_user-manual_775873046.webp)
40
Smartcat (BL2100)
•
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.5 Using Calibration Constants
The following sample programs are found in the
Calib_Save_Retrieve
subdirectory
in
SAMPLES\BL2100
. Note that both sample programs prompt you to use a serial number
for the BL2100. This serial number can be any 5-digit number of your choice, and will be
unique to a particular BL2100. Do
not
use the MAC address on the bar code label of the
RabbitCore module attached to the BL2100 since you may at some later time use that par-
ticular RabbitCore module on another BL2100, and the previously saved calibration data
would no longer apply.
•
GETCALIB.C
—This program demonstrates how to retrieve your analog calibration
data to rewrite it back to the simulated EEPROM in flash with using a serial utility such
as Tera Term.
NOTE:
Calibration data must be saved previously in a file by the sample program
SAVECALIB.C
.
•
SAVECALIB.C
—This program demonstrates how to save your analog calibration coef-
ficients using a serial port and a PC serial utility such as Tera Term.
NOTE:
Use the sample program
GETCALIB.C
to retrieve the data and rewrite it to the
single-board computer.
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 program 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.
4.2.8 LCD/Keypad Module Sample Programs
Sample programs for the LCD/keypad module are described in Section C.7.
Содержание BL2100
Страница 6: ...Smartcat BL2100...
Страница 14: ...8 Smartcat BL2100...
Страница 60: ...54 Smartcat BL2100...
Страница 78: ...72 Smartcat BL2100...
Страница 84: ...78 Smartcat BL2100...
Страница 118: ...112 Smartcat BL2100...
Страница 124: ...118 Smartcat BL2100...
Страница 132: ...126 Smartcat BL2100...
Страница 134: ......