AN137 Silicon_Laboratories, AN137 Datasheet - Page 21

no-image

AN137

Manufacturer Part Number
AN137
Description
Lithium ION Battery Charger Using C8051f300
Manufacturer
Silicon_Laboratories
Datasheet
#define TEMP_SENSOR_GAIN
#define TEMP_GAIN
#define CURRENT_GAIN
#define VREF
#define SCRATCH_PAGE
#define PWM_CLOCK
//-----------------------------------------------------------------------------
// Calibration/Calculation PARAMETERS
//-----------------------------------------------------------------------------
#define V1_CAL
#define V2_CAL
#define I1_CAL
#define I2_CAL
#define RSENSE
#define RESB
#define RESAB
#define TEMP_SLOPE ((long) TEMP_GAIN * TEMP_SENSOR_GAIN * 65536 / 100 / VREF)
//-----------------------------------------------------------------------------
// Monitor_Battyer Switch PARAMETERS
//-----------------------------------------------------------------------------
#define TEMPERATURE
#define VOLTAGE
#define VOLTAGE_PWM_OFF
#define CURRENT
//-----------------------------------------------------------------------------
// Battery/Pack Parameters
//-----------------------------------------------------------------------------
#define
#define
#define
#define I_BULK
#define I_LOWCURRENT
#define VOLT_BULK
#define VOLT_LOWCURRENT
#define VOLT_TOLERANCE
#define CURRENT_TOLERENCE
//-----------------------------------------------------------------------------
// Battery Characteristics: Charge TERMINATION Limits
//-----------------------------------------------------------------------------
#define
#define
CELLS
CAPACITY
LiIon_CELL_VOLT
MIN_TEMP_ABS
MAX_TEMP_ABS
3300
2
4
3200
0x1C00
SYSCLK/255
67
2800
67
133
1
20
30
7
5
3
1
(unsigned int)(CAPACITY)
(unsigned int)(CAPACITY/4)
(unsigned int)(LiIon_CELL_VOLT)
(unsigned int)(LiIon_CELL_VOLT)
(unsigned int)(LiIon_CELL_VOLT/100)// 1 Percent Acc
(unsigned int)(CAPACITY/10)
1
150
4200
26300
32300
// Temp Sensor Gain in (uV / degC)
// PGA gain setting
// PGA gain setting
// ADC Voltage Reference (mV)
// FLASH page used for temp storage
// PWM frequency is 96 kHz
// 1st cal point for 2 point cal.
// 2nd cal point for 2 point cal.
// 1st cal point for 2 point cal.
// 2nd cal point for 2 point cal.
// RSENSE is assumed to be 1/2 ohm
// 10k Ohms, Voltage Divide Resistor
// 20k Ohms, Voltage Divide Resistor
// An estimate of the Temperature<SLOPE>
// in [tenth codes / K]
// The temperature measurement is
// within 3 degrees of accuracy.
// Value for Switch Statement
// Value for Switch Statement
// Value for Switch Statement
// Value for Switch Statement
// Abs. min. TEMPERATURE = -10 C, 263K
// Abs. max. TEMPERATURE = 50C, 323K:
// Number of cells in the battery pack
// mAh, Battery Capacity (LiIon)
// mV, Nominal Charge Voltage
Rev. 1.2
// 10 Percent Acc
AN137
21

Related parts for AN137