⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nimh.h

📁 AVR450 Battery Charger for SLA, NiCd, NiMH and Li-ion Batter
💻 H
字号:
/*********************************** MODULE INFO ************************************
	
   Device      : AT90S2333

   File name   : NiMh.h

   Ver nr.     : 1.0

   Description : Header file for NiMH.c containing the battery specific definitions
                 
   Compiler    : IAR icca90
   
   Author      : Asmund Saetre / Terje Frostad / Dietmar Koenig
 
   Change log  : 02.02.2000 Changed to fit Battery Charger refrence design board   AS  
 				 17.04.2000 Debugged by AS
 
*************************************************************************************/

// Include Files
//************************************************************************************
#include <ina90.h>
#include <math.h>
#include "BC.H"
#include "B_Def.H"

// Function prototypes
//************************************************************************************
void FAST_charge(void);
void TRICKLE_charge(void);

// Battery Characteristics: General charge TERMINATION
//***************************************************************************
#define  MIN_TEMP_ABS	0x02C7             	// absolute minimum TEMPERATURE = 5C
#define  MAX_TEMP_ABS   0x0175           	// absolute maximum TEMPERATURE = 40C
#define  MAX_VOLT_ABS 	(unsigned int)((CELLS * 1600)/ VOLTAGE_STEP) 
											// Absolute Maximum Charge VOLTAGE = 
											// CELLS * 1600mV * scale factor     

// Battery Characteristics: FAST charge TERMINATION       
//***************************************************************************
// -dV = 20mV per cell,rounded up to closest one 
#define  NEG_dV      (int)(ceil((CELLS * 0x14)/VOLTAGE_STEP))
  
// Battery Characteristics: FAST charge ERROR
//***************************************************************************
#define  MIN_TEMP_FAST 	0x0296             	// Minimum FAST Charge TEMPERATURE 10C
#define  MAX_TIME_FAST  0x5A               	// Maximum FAST Charge Time = 1.5C = 90min at 
											// 1C CURRENT     

// Battery Characteristics: Charge conditions
//***************************************************************************
#define  I_FAST      	(int)(CAPACITY / CURRENT_STEP)
											// FAST Charge CURRENT = 1C 
#define  I_TRICKLE   	(int)((CAPACITY * 0.025)/ CURRENT_STEP)  
											// TRICKLE Charge CURRENT = 0.025C
#define  MAX_TIME_TRICKLE 0x5A            	// Maximum TRICKLE Charge Time = 90min   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -