Commit mthomas changes to GCC and port those changes to IAR
[avr_bc100.git] / BaseTinyFirmware / GCC / LIIONspecs.h
index e662b1ef75dbe7a5a8614dbe45cc7f575e0bc933..5a30b35ace2a0ac01e69b806588acd12fdda1df7 100644 (file)
 #ifndef LIIONSPECS_H\r
 #define LIIONSPECS_H\r
 \r
+/*\r
+ Information on Varta EasyPack 66590 711 099 collected by M. Thomas:\r
+\r
+ Connections:\r
+ Pad 1 - marked with + : Battery +\r
+ Pad 2 - not marked    : ID-Resistor (RID) to Pad 4, 3.9kOhm\r
+ Pad 3 - not marked    : NTC to Pad 4, 10kOhm B=3435K\r
+ Pad 4 - marked with - : Battery -\r
+ -> 1Wire not available\r
+\r
+ Capacity: nom. 550mAh (min. 520 mAh) at 0.2C from 4.2V to 3.0V\r
+ Nominal Voltage: 3.7V, Range: 2.75V - 4.2V\r
+ Charging Method: Constant Current + Constant Voltage\r
+  Charge Voltage: 4.2V\r
+  Initial charge Current: std. 260mA, rapid 520mA\r
+  Charging cut of either:\r
+  (a) at time: std. 5h, rapid 3h\r
+  (b) by min current of 10mA\r
+  Temparature 0 to 45degC\r
+ Discharge max. Current: 1040mA\r
+ Protection:\r
+  overcharge : 4.35V (resume at 4.0V)\r
+  discharge  : 2.2V\r
+  overcurrent: 3.0A\r
+\r
+ Additional from PoliFlex-Handbook:\r
+  - fast charging in termperatur-range 0 - 45degC\r
+  - max charge current 1C (=550mA here)\r
+  - max charge current has to be limited stricly to 4,2V +/- 50mV\r
+  - stop charge 3h after start of when current is <0.02C (=11mA here)\r
+*/\r
+\r
 \r
 //******************************************************************************\r
 // Cell limits\r
 //******************************************************************************\r
 // This is for common NiMH batteries.\r
 #define        CELL_VOLTAGE_SAFETY     0  /*!< \brief Buffer for unmatched batteries.\r
- * \r
+ *\r
  * If we are charging a multicell battery and the cells aren't matched, we\r
  * may risk overcharging at least one. Therefore, we may subtract this constant\r
  * per additional cell in battery to allow for a "buffer".\r
 //! Charge voltage hysteresis, in mV.\r
 #define        BAT_VOLTAGE_HYST     10\r
 \r
-//! Maximum battery voltage, in mV. \r
+//! Maximum battery voltage, in mV.\r
 #define        BAT_VOLTAGE_MAX      (CELL_VOLTAGE_MAX * BAT_CELL_NUMBER) - \\r
                               ((BAT_CELL_NUMBER - 1) * CELL_VOLTAGE_SAFETY)\r
 \r