?? nimh.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 + -