pack.h File Reference


Detailed Description

Battery pack definitions.

This file creates the *PACK's* voltage and current figures, based on both the individual cell specifications and the pack configuration.

Application note:
AVR453: Smart Battery Reference Design
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: Rob G. Fries - Apt Inc.
Revision
URL
Date

Definition in file pack.h.

#include "LG18450.h"
#include "pack_cfg.h"

Go to the source code of this file.

Defines

#define PACK_CCCV_C   (CELL_CCCV_C * PACKWIDTH)
#define PACK_CCCV_TERMC   (CELL_CCCV_TERMC * PACKWIDTH)
#define PACK_CCCV_V   (CELL_CCCV_V * PACKSTACK)
#define PACK_DESIGNCAPC5   (CELL_DESIGNCAPC5 * PACKWIDTH)
#define PACK_DESIGNCAPMW   ((PACK_DESIGNCAPTYP/100) * (PACK_NOMINALV/100))
#define PACK_DESIGNCAPTYP   (CELL_DESIGNCAPTYP * PACKWIDTH)
#define PACK_DISCHG_C5   (CELL_DISCHG_C5 * PACKWIDTH)
#define PACK_DISCHG_MAX   (CELL_DISCHG_MAX * PACKWIDTH)
#define PACK_HIBERNATEAMOUNT   1
#define PACK_MAX_CHG_C   (CELL_MAX_CHG_C * PACKWIDTH)
#define PACK_MINV   (CELL_MINV * PACKSTACK)
#define PACK_NOMINALV   (CELL_NOMINALV * PACKSTACK)
#define PACK_PROTECT_DUV   {BPDUV = (0x01<<4) | (0x0D << 0);}
#define PACK_PROTECT_OVERC   {BPOCD = 0<<4 | 0<<0;}
#define PACK_PROTECT_SHORT   {BPSCD = 0;}
#define PACK_PROTECT_TIME   {CBPTR = 1<<4 | 5<<0;}


Define Documentation

#define PACK_CCCV_C   (CELL_CCCV_C * PACKWIDTH)

Definition at line 45 of file pack.h.

Referenced by MasterSMBusCheck().

#define PACK_CCCV_TERMC   (CELL_CCCV_TERMC * PACKWIDTH)

Definition at line 46 of file pack.h.

#define PACK_CCCV_V   (CELL_CCCV_V * PACKSTACK)

Definition at line 44 of file pack.h.

Referenced by MasterSMBusCheck().

#define PACK_DESIGNCAPC5   (CELL_DESIGNCAPC5 * PACKWIDTH)

Definition at line 37 of file pack.h.

Referenced by SMBR_DesignCap().

#define PACK_DESIGNCAPMW   ((PACK_DESIGNCAPTYP/100) * (PACK_NOMINALV/100))

Definition at line 51 of file pack.h.

Referenced by SMBR_DesignCap().

#define PACK_DESIGNCAPTYP   (CELL_DESIGNCAPTYP * PACKWIDTH)

Definition at line 36 of file pack.h.

Referenced by AbsoluteSOC(), AtRateTTF(), and InitSMBvariables().

#define PACK_DISCHG_C5   (CELL_DISCHG_C5 * PACKWIDTH)

Definition at line 41 of file pack.h.

#define PACK_DISCHG_MAX   (CELL_DISCHG_MAX * PACKWIDTH)

Definition at line 42 of file pack.h.

Referenced by ChargeCheck().

#define PACK_HIBERNATEAMOUNT   1

Definition at line 58 of file pack.h.

Referenced by WakeUp_ISR().

#define PACK_MAX_CHG_C   (CELL_MAX_CHG_C * PACKWIDTH)

Definition at line 47 of file pack.h.

Referenced by ChargeCheck().

#define PACK_MINV   (CELL_MINV * PACKSTACK)

Definition at line 40 of file pack.h.

Referenced by AtRateOK(), AtRateTTE(), AvgTimeToFull(), and TimeToEmpty().

#define PACK_NOMINALV   (CELL_NOMINALV * PACKSTACK)

Definition at line 39 of file pack.h.

Referenced by FullChgCap(), and SMBR_DesignVolt().

#define PACK_PROTECT_DUV   {BPDUV = (0x01<<4) | (0x0D << 0);}

Definition at line 52 of file pack.h.

Referenced by HWProtectinit().

#define PACK_PROTECT_OVERC   {BPOCD = 0<<4 | 0<<0;}

Definition at line 54 of file pack.h.

Referenced by HWProtectinit().

#define PACK_PROTECT_SHORT   {BPSCD = 0;}

Definition at line 53 of file pack.h.

Referenced by HWProtectinit().

#define PACK_PROTECT_TIME   {CBPTR = 1<<4 | 5<<0;}

Definition at line 55 of file pack.h.

Referenced by HWProtectinit().


Generated on Mon Nov 12 15:59:59 2007 for AVR453 Smart Battery Reference Design by  doxygen 1.5.3