User`s manual
56 eDisplay (OP7200)
4.3.8 Using System Information from the RabbitCore Module
Calibration constants for the A/D converter are stored in the simulated EEPROM area of
the flash memory. You may find it useful to retrieve the calibration constants and save
them for future use, for example, if you should need to replace the RabbitCore module on
the OP7200.
The following sample programs, found in the Calib_Save_Retrieve subdirectory in
SAMPLES\OP7200, illustrate how to save or retrieve the calibration constants. Note that
both sample programs prompt you to use a serial number for the OP7200. This serial num-
ber can be any 5-digit number of your choice, and will be unique to a particular OP7200.
Do not use the MAC address on the bar code label of the RabbitCore module attached to
the OP7200 since you may at some later time use that particular RabbitCore module on
another OP7200, and the previously saved calibration data would no longer apply.
• 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.
• 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.
NOTE: In addition to loading the calibration constants on the replacement RabbitCore
module, you will also have to add the product information for the OP7200 to the ID
block associated with the RabbitCore module. The sample program WRITE_
IDBLOCK.C, available on the our Web site at www.rabbit.com/support/feature_
downloads.shtml, provides specific instructions and an example.
Two sample programs are available to show how to get information on ID and user blocks,
and how to clear the contents in the user block. These sample programs are in the
Dynamic C SAMPLES\USERBLOCK folder.
• USERBLOCK_INFO.C—This program reports on the size and capabilities of the ID and
user blocks. It will report the version of the ID block, the size of the ID and user blocks,
the size of the user blocks reserved for calibration constants, whether the ID or user
blocks are mirrored, and the total amount of flash memory used by the ID and user
blocks.
• USERBLOCK_CLEAR.C—This program clears the contents of the user block. Note that
it does not clear the calibration constants or the system ID block.
When you run this sample program in the Program Mode, there is a 300 ms timer delay
after each writeUserBlock() call to allow Dynamic C and the OP7200 to exchange
a debug packet in order to inform the debug kernel that the OP7200 is still “alive.” The
timer delay is not necessary in the Run Mode with nodebug or when single-stepping.