AN137 Silicon_Laboratories, AN137 Datasheet - Page 28

no-image

AN137

Manufacturer Part Number
AN137
Description
Lithium ION Battery Charger Using C8051f300
Manufacturer
Silicon_Laboratories
Datasheet
AN137
//
void Regulate_Current(int passed_current)
{ unsigned int temp = 0;
}
//-----------------------------------------------------------------------------
// Regulate_Voltage
//-----------------------------------------------------------------------------
// This routine monitors the battery’s voltage and adjusts
// the PWM (i.e. duty cycle) to keep the voltage at a known value
//
void Regulate_Voltage(void)
{ unsigned int temp = 0;
}
//-----------------------------------------------------------------------------
// Turn_PWM_Off
//-----------------------------------------------------------------------------
// This routine peforms a soft charge turn off by taking the PWM’s
// duty cycle slowly to zero.
//
void Turn_PWM_Off(void)
{
28
do{
}while ((temp < (passed_current - CURRENT_TOLERENCE)) ||
temp = Monitor_Battery(VOLTAGE_PWM_OFF);
if ((temp >= (VOLT_LOWCURRENT - VOLT_TOLERANCE)) &&
{
}
do{
}while ((temp < (VOLT_BULK - VOLT_TOLERANCE)) ||
if (temp < passed_current)
(temp <= (VOLT_LOWCURRENT + VOLT_TOLERANCE)))
if (temp < VOLT_BULK)
temp = Monitor_Battery(CURRENT);
if (temp > passed_current)
CONST_C = 0;
CONST_V = 1;
temp = Monitor_Battery(VOLTAGE);
if (temp > VOLT_BULK)
PCA0CPH0--;
PCA0CPH0--;
PCA0CPH0++;
PCA0CPH0++;
(temp > (passed_current + CURRENT_TOLERENCE)));
(temp > (VOLT_BULK + VOLT_TOLERANCE)));
// Measure Current
// I_BULK or I_LOWCURRENT is set now
// If VOLTAGE within range,
// change from constant CURRENT charge
// mode to constant VOLTAGE charge mode
// set VOLT_BULK (with “soft start”)
// VOLTAGE is set now
Rev. 1.2

Related parts for AN137