APPENDIX A: THE SKETCHBOOK CONTENTS
4. ADC conversion settings can also be modified in the
Setup Variables section. The default setup is to run the
ADC in Normal mode, which has a 7kHz filter code; in this
mode the ADC_OPT bit is disabled. Typical choice for which
cell to convert is ALL. Full ADC conversion programming
requires setting ADC_OPT, ADC_CONVERSION_MODE,
CELL_CH_TO_CONVERT, AUX_CH_TO_CONVERT,
and STAT_CH_TO_CONVERT. These variables are pro-
grammed with constants listed in the LTC68xy_daisy.h
file. For simplicity they are also listed below.
MD_422HZ_1KHZ
MD_27KHZ_14KHZ
MD_7KHZ_3KHZ
MD_26HZ_2KHZ
ADC_OPT_ENABLED
ADC_OPT_DISABLED
CELL_CH_ALL
CELL_CH_1and7
CELL_CH_2and8
CELL_CH_3and9
CELL_CH_4and10
CELL_CH_5and11
CELL_CH_6and12
Information furnished by Analog Devices is believed to be accurate and reliable. However, no responsibility is assumed by Analog
Devices for its use, nor for any infringements of patents or other rights of third parties that may result from its use. Specifications
subject to change without notice. No license is granted by implication or otherwise under any patent or patent rights of Analog Devices.
DEMO MANUAL DC2515B
To set the ADC to have a 1kHz filter corner the ADC_OPT
and ADC_CONVERSION_MODE variables would be
changed as follows.
ADC_OPT = ADC_OPT_ENABLED;
ADC_CONVERSION_MODE = MD_422HZ_1KHZ;
To convert only cells 2 and 8,
CELL_CH_TO_CONVERT = CELL_CH_2and8;
5. In another example, the user may wish to change the
undervoltage and overvoltage thresholds. Each number
is based on an LSB of 100µV.
//Under Voltage and Over Voltage Thresholds
const uint16_t OV_THRESHOLD = 41000;
// Over voltage threshold ADC Code.
// LSB = 0.0001
const uint16_t UV_THRESHOLD = 30000;
// Under voltage threshold ADC Code.
// LSB = 0.0001
Rev. 0
13
Need help?
Do you have a question about the Analog Devices DC2515B and is the answer not in the manual?
Questions and answers