//LTC6804_adcv(); //启动电池电压转换和GPIO1、GPIO2转换和轮询状态
//set_adc(MD_FILTERED,DCP_DISABLED,CELL_CH_ALL,AUX_CH_ALL); //滤波模式
//LTC6804_rdcv(0,cell_zu,cell_codes); //6804获取12节电池电压
//set_adc(MD_NORMAL,DCP_DISABLED,CELL_CH_ALL,AUX_CH_ALL); //标准模式
//LTC6804_adax(); //启动GPIO转换
//LTC6804_rdaux(0,cell_zu,aux_codes); //读取GPIO1-5的数据+VREF2 0 读回所有辅助寄存器
//LTC6804_rdaux(1,cell_zu,aux_codes); //读取GPIO1-3的数据 1-3 选辅助A组
//LTC6804_rdaux(2,cell_zu,aux_codes); //读取GPIO4-5+VREF2数据 2 选辅助B组 4-5 VREF2
//LTC6804_ADSTAT (); //
//LTC6804_rdstat(uint8 t reg,uint8 t total_ic,uint16 t stat_codes[][6])
//reg = 1或其他值时 选辅助寄存器1 reg = 2 选辅助寄存器2
//LTC6804_rdstat(0,cell_zu,stat_codes); //测量内部器件参数 (ADSTAT 命令)
//
采集电池电压四位整数 mv
获取最大电压、最小电压
求总和 各项相加
目前根据电压取SOC 后面根据电流积分法
temp[0] = Get_Tempture(aux_codes[0][1]);
temp[1] = Get_Tempture(aux_codes[0][2]);
任何人询问、访问本店铺,购买和未购买,即认为已阅读、理解并同意受本使用条款约束,并遵守所有适用的法律规定。若您不同意遵守本适用条款,请勿购买或停止访问、询问。
本店所有资料为店主原创设计素材和汇编整理素材,本店原创素材成功申请阿里知识版权保护,发现同行倒卖、盗售直接投诉到底。汇编整理的素材来自各网络公开发表的资料。所有资料仅供买家交流,仅为买家友谊赞助,并非用于任何商业用途。所收取的费用仅用于本店人员整理费,仅为买家友谊赞助,并非销售文件费用,如侵犯到您的权益,请联系卖家处理。
Anyone who visits or browses this Taobao store, purchases or does not purchase, shall be deemed to have read, understood and agreed to be bound by these terms of use, and shall comply with all applicable laws and regulations. If you do not agree to comply with the terms of this application, do not purchase or stop visiting.
The store’s materials are divided into original materials of the owner and compiled materials. The original materials of the owner have been successfully added to the original protection, and the reselling will be automatically complained. The compiled materials come from the documents published in various online forums. All information is for exchange and study only. It is strictly prohibited to use it for commercial purposes. The fee collected is only used to maintain the operation of our store, which is a friendly sponsorship of the buyer, not a fee for selling documents. You can place an order after you agree to this statement, if it infringes your rights and interests, please contact the seller.









