NIMHspecs.h File Reference


Detailed Description

NiMH specifications.

Contains example definitions of NiMH battery specifications.

Application note:
AVR463: Charging NiMH Batteries with BC100
Documentation:
For comprehensive code documentation, supported compilers, compiler settings and supported devices see readme.html
Author:
Atmel Corporation: http://www.atmel.com
Support email: avr@atmel.com
Original author:
$Name$
Revision
2255
$RCSfile$
URL
http://svn.norway.atmel.com/AppsAVR8/avr463_Charging_NiMH_Batteries_with_BC100/trunk/code/IAR/NIMHspecs.h
Date
2007-08-09 14:47:58 +0200 (to, 09 aug 2007)

Definition in file NIMHspecs.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define BAT_CELL_NUMBER   3
 Number of cells in battery.
#define BAT_CURRENT_HYST   3
 Charge current hysteresis, in mA.
#define BAT_CURRENT_PREQUAL   150
 Constant charge current, in mA, during prequalification mode.
#define BAT_TEMPERATURE_MAX   50
 Maximum cell temperature (Celsius).
#define BAT_TEMPERATURE_MIN   5
 Minimum Cell temperature (Celsius).
#define BAT_TIME_PREQUAL   2
 Maximum time for prequalification, in minutes.
#define BAT_VOLTAGE_DROP   (CELL_VOLTAGE_DROP * BAT_CELL_NUMBER)
 Voltage drop, in mV, when full charge is achieved.
#define BAT_VOLTAGE_HYST   10
 Charge voltage hysteresis, in mV.
#define BAT_VOLTAGE_LOW   (CELL_VOLTAGE_LOW * BAT_CELL_NUMBER)
 Minimum voltage, in mV, to consider battery charged.
#define BAT_VOLTAGE_MAX
 Maximum battery voltage, in mV.
#define BAT_VOLTAGE_MIN   (CELL_VOLTAGE_MIN * BAT_CELL_NUMBER)
 Minimum voltage, in mV, to consider battery safe to charge.
#define BAT_VOLTAGE_PREQUAL   (CELL_VOLTAGE_PREQUAL * BAT_CELL_NUMBER)
 Charge voltage to achieve, in mV, during prequalification mode.
#define CELL_VOLTAGE_DROP   15
 Cell voltage drop when full charge is achieved.
#define CELL_VOLTAGE_LOW   1350
 Minimum voltage to consider cell charged at, in mV.
#define CELL_VOLTAGE_MAX   1600
 Maximum charge voltage for cell, in mV.
#define CELL_VOLTAGE_MIN   800
 Minimum voltage to start charging at, in mV.
#define CELL_VOLTAGE_PREQUAL   1000
 Target voltage during prequalification, in mV.
#define CELL_VOLTAGE_SAFETY   0
 Buffer for unmatched batteries.


Define Documentation

#define BAT_CELL_NUMBER   3

Number of cells in battery.

Definition at line 71 of file NIMHspecs.h.

#define BAT_CURRENT_HYST   3

Charge current hysteresis, in mA.

Definition at line 87 of file NIMHspecs.h.

Referenced by ConstantCurrent().

#define BAT_CURRENT_PREQUAL   150

Constant charge current, in mA, during prequalification mode.

Note:
This is typically lower than the main charge current.

Definition at line 84 of file NIMHspecs.h.

#define BAT_TEMPERATURE_MAX   50

Maximum cell temperature (Celsius).

Definition at line 74 of file NIMHspecs.h.

Referenced by Charge().

#define BAT_TEMPERATURE_MIN   5

Minimum Cell temperature (Celsius).

Definition at line 77 of file NIMHspecs.h.

Referenced by Charge().

#define BAT_TIME_PREQUAL   2

Maximum time for prequalification, in minutes.

Definition at line 80 of file NIMHspecs.h.

Referenced by Charge().

#define BAT_VOLTAGE_DROP   (CELL_VOLTAGE_DROP * BAT_CELL_NUMBER)

Voltage drop, in mV, when full charge is achieved.

Definition at line 103 of file NIMHspecs.h.

Referenced by Charge().

#define BAT_VOLTAGE_HYST   10

Charge voltage hysteresis, in mV.

Definition at line 90 of file NIMHspecs.h.

Referenced by ConstantVoltage().

#define BAT_VOLTAGE_LOW   (CELL_VOLTAGE_LOW * BAT_CELL_NUMBER)

Minimum voltage, in mV, to consider battery charged.

Definition at line 97 of file NIMHspecs.h.

Referenced by BatteryStatusRefresh().

#define BAT_VOLTAGE_MAX

Value:

Maximum battery voltage, in mV.

Definition at line 93 of file NIMHspecs.h.

Referenced by Charge().

#define BAT_VOLTAGE_MIN   (CELL_VOLTAGE_MIN * BAT_CELL_NUMBER)

Minimum voltage, in mV, to consider battery safe to charge.

Definition at line 100 of file NIMHspecs.h.

Referenced by BatteryStatusRefresh().

#define BAT_VOLTAGE_PREQUAL   (CELL_VOLTAGE_PREQUAL * BAT_CELL_NUMBER)

Charge voltage to achieve, in mV, during prequalification mode.

Definition at line 106 of file NIMHspecs.h.

Referenced by Charge().

#define CELL_VOLTAGE_DROP   15

Cell voltage drop when full charge is achieved.

Definition at line 63 of file NIMHspecs.h.

#define CELL_VOLTAGE_LOW   1350

Minimum voltage to consider cell charged at, in mV.

Definition at line 54 of file NIMHspecs.h.

#define CELL_VOLTAGE_MAX   1600

Maximum charge voltage for cell, in mV.

Definition at line 51 of file NIMHspecs.h.

#define CELL_VOLTAGE_MIN   800

Minimum voltage to start charging at, in mV.

Definition at line 57 of file NIMHspecs.h.

#define CELL_VOLTAGE_PREQUAL   1000

Target voltage during prequalification, in mV.

Definition at line 60 of file NIMHspecs.h.

#define CELL_VOLTAGE_SAFETY   0

Buffer for unmatched batteries.

If we are charging a multicell battery and the cells aren't matched, we may risk overcharging at least one. Therefore, we may subtract this constant per additional cell in battery to allow for a "buffer".

Note:
Set to 0 if batteries are properly matched.

If this is changed to something higher than (CELL_VOLTAGE_MAX - CELL_VOLTAGE_LOW), and the number of cells is great enough, the limit BAT_VOLTAGE_LOW will become higher than BAT_VOLTAGE_MAX. This will cause the charger to keep trying to charge, but instantly finishing because the battery voltage is already at max.

Definition at line 36 of file NIMHspecs.h.


Generated on Tue Sep 4 19:17:59 2007 for AVR463 Charging NiMH Batteries with ATAVRBC100 by  doxygen 1.5.2