|
附件包含電池管理系統(tǒng)的軟件部分,BMS采集LTC6803方案
單片機(jī)源程序如下:
- /****************************************************************************
- 28串 調(diào)試版本V1.0
- ***項目名稱 : BMS202A(Battery Manage System)電池管理系統(tǒng)
- ***MCU: msp430F2274
- ***晶振: 12M
- ***硬件版本:Bms202A V1.0
- ***軟件版本:Bms202A V1.0
- ***編譯平臺:IAR for msp430 5.30
- ***應(yīng)用范圍:鋰錳電池組管理系統(tǒng)本系統(tǒng)目前適用的28節(jié)單體電池組成的電池組
- ***主要功能:對電池組參數(shù)實現(xiàn)監(jiān)控,過溫保護(hù) 過充保護(hù) 過充恢復(fù) 過放保護(hù) 過放恢復(fù) 過流保護(hù) 充電靜置均衡
- ***author:feimy
- ***創(chuàng)建日期: 2012 -7 -10
- ***最后修改日期:2012-7-12 15:30
- *****************************************************************************************************/
- #include "in430.h"
- #include "io430x22x4.h"
- #include "CFG.h"
-
- void main(void)
- {
- InitializeMSP430();
- ConfigSPIMode();
- ConfigUartMode();
- FlashInit();
- CLRWDT;
- InitLCD();
- DispProjectTitle();
- DataInit();
- Ltc6803init();
- InitAdc();
- InitTa();
- CLRWDT;
- while(True)
- {
- if(LcdDisplayTimes > 2)
- BtyOpenWireFg = OpenWireDetection();
- ReadAllTempr(); // read the tempreture
- ReadAllCellsV(); // read all cells volt
- ReadFlag(); // read OV UV flag
- CDCurrent[1] = 0;
- ReadCurrent(CHD); //采樣放電電流
- ReadCurrent(CHC); //樣充電電流
- ……………………
- …………限于本文篇幅 余下代碼請從51黑下載附件…………
復(fù)制代碼
所有資料51hei提供下載:
BMS202S28SV1.02.rar
(118.69 KB, 下載次數(shù): 39)
2017-6-21 15:55 上傳
點擊文件名下載附件
BMS
|
評分
-
查看全部評分
|