SMB1351-高通模块原厂规格书

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

EJRQC3003模块说明书Rev1.011.产品介绍EJRQC3003使用QualcommSMB1351芯片,是一款可编程的单节锂电池充电管理模块;支持高通QuickCharge2.0和QuickCharge3.0的快速充电协议;可支持最大充电电流4.5A。本模块已集成了芯片基本外围电路,使用简洁,方便快速快发,并可节省更多的BOM成本。功能兼容USBBC1.2规范支持QC2.0,QC3.0:5V/9V/12V充电效率大于90%,最大电流4.5A自动输入电流限制(AICL)过压、过温、过流保护IIC可编程产品应用移动电源平板电脑微型投影仪无人机手机其他带锂电移动设备EJRQC3003模块支持QualcommQuickCharge2.0/3.0TEL:15919907691Wang.REJRQC3003模块说明书Rev1.022.电气特性表2-1:直流特性EJRQC3003模块说明书Rev1.03EJRQC3003模块说明书Rev1.04EJRQC3003模块说明书Rev1.05EJRQC3003模块说明书Rev1.06表2-2:交流特性Note:(含表2-1和表2-2)1.WhentheDCINvoltagerises/fallsabove/belowthisthreshold,thecorrespondingstatusregisterindicatesaUVLO/OVLO/USB-OKcondition.Iftheuserselectstheappropriatebit,theSTAToutputassertsanIRQsignalindicatingthiscondition.2.ICHGisoverriddenbytheinputcurrentlimit(ILIM).3.Voltageandcurrentaccuraciesareonlyguaranteedforfactoryprogrammedsettings.ChangingtheoutputvoltagefromthatreflectedinthecustomerspecificCSIRcoderesultsininaccuraciesexceedingthosespecifiedabove.4.Duringshutdownmode,theinternalBATT-to-SYSFETisoff.5.WhenVBATTfallsbelowVSYSthecorrespondingstatusregisterindicatesalowbatterycondition.6.Thistimedoesnotincludethedebounceglitchfiltertimeofapproximately50msfordeterminingavalidinput.7.Subjecttothermalderating.8.Not100%productiontested.Guaranteedbydesignand/orcharacterization.EJRQC3003模块说明书Rev1.073.应用电路图1:移动电源应用电路应用说明:1.SYS:3.0V-4.5V系统用电输出,最大电流4.5A(不使用可悬空)2.FETDRV:外置MOSFET驱动,如果移动电源升压输出对外设充电部分是从SYS上取电,可以使用外置MOS以增加驱动能力和效率(不使用可悬空)3.USB23/VCHG:输出电压0–2.5V,VCHG=IIN(输入电流)×0.554.IIC需要接外部上拉电阻5.STAT:三态输出,需要外接上拉电阻,指示充电状态,充电时输出低,不充时为高阻输出PGOODJ1USBINVBUS1D-2D+3GND4GND5BAT+VCHGR110KR210KSDASCLR310KSTATVDDMCUI/OMCUADInputMCUI/OMCUI/OMCUI/OBAT+BAT-BAT+R40RR50RU1SMB1351-EJ3GND1GND2SYS3SYS4FETDRV5BAT+6BAT+7OTG_ID8USB23_VCHG9SUSP_SHDN10THERM11PGOOD12EN13USBCS14STAT15D-16D+17SDA18SCL19USB+20USB+21MID22SYSON23GND24C122pFC222pFOptionalEJRQC3003模块说明书Rev1.084.管脚排序EJRQC3003模块说明书Rev1.09EJRQC3003模块说明书Rev1.010管脚名描述GND接地SYS系统用电输出(3.0V-4.5V),最大支持4.5A电流FETDRV外置MosFet驱动脚BAT+电池充电输出脚OTG/IDOTG/ID检测USB23/VCHG模拟电压输出,指示USB输入端实时充电电流值SUSP/SHDNSuspend控制管脚THERM电池温度检测输入端PGOODDCIN检测,当插入USB时,PGOOD输出2.5V高电平EN充电使能,模块内部已接下拉电阻到GND,已开启使能USBCSUSB9/5/1.5/HC选择,内部已接下拉电阻到GNDSTAT状态输出D+/D-电源检测,接到USBD+/D-SDA/SCLIIC通信接口SYSON辅助电源输出,最小50mAUSB+电源输入脚,接到USBVBUSEJRQC3003模块说明书Rev1.0115.外观尺寸*焊点Pad尺寸:0.9mm*1.5mmEJRQC3003模块说明书Rev1.0126.软件编程SMB1351为标准的IIC接口,器件地址为0xAE,支持最大通信速率400kHz。通过IIC接口,用户可以配置充电电压、充电电流、电池电压设置、查询充电状态等操作。(详细的寄存器表请参考SMB1351用户使用手册)参考代码://==============================================================================//SMB1351参考代码//==============================================================================#includemsp430f5522.h#includedefine.h#defineACK1#defineNO_ACK2#defineSET_SCLK_GPIOP4SEL&=~BIT2#defineSET_SDAT_GPIOP4SEL&=~BIT1#defineSET_SCLK_OUTP4DIR|=BIT2#defineSET_SDAT_OUTP4DIR|=BIT1#defineSET_SDAT_INP4DIR&=~BIT1#defineSCLK(n){if(n)P4OUT|=BIT2;elseP4OUT&=~BIT2;}#defineSDA(n){if(n)P4OUT|=BIT1;elseP4OUT&=~BIT1;}#defineSDA_IN(P4IN&BIT1)#defineWriteADDR0xAE#defineReadADDR0xAF#defineBaterryNotFULL0#defineBaterryFULL1staticvoidwait(void){u8n=15;while(n--);}voidiic_init(void){SET_SCLK_GPIO;SET_SDAT_GPIO;SET_SCLK_OUT;SET_SDAT_OUT;SCLK(1);SDA(1);}void_i2c_start(void){SET_SCLK_OUT;SET_SDAT_OUT;SCLK(1);SDA(1);wait();SDA(0);wait();}void_i2c_stop(void)EJRQC3003模块说明书Rev1.013{SET_SDAT_OUT;wait();SCLK(0);SDA(0);wait();SCLK(1);wait();SDA(1);}void_i2c_no_ack(void){SET_SDAT_OUT;wait();SCLK(0);wait();SDA(1);SCLK(1);wait();SCLK(0);}void_i2c_ack(void){SET_SDAT_OUT;wait();SCLK(0);wait();SDA(0);SCLK(1);wait();SCLK(0);}u8_i2c_wr_byte(u8bdat){u8i;SET_SDAT_OUT;for(i=0;i8;i++){SCLK(0);wait();SDA(bdat&0x80);wait();SCLK(1);wait();SCLK(0);bdat=1;}SET_SDAT_IN;wait();SCLK(1);wait();if(SDA_IN){SCLK(0);return0;}else{SCLK(0);return1;}}u8_i2c_rd_byte(void){u8i,bdat;SET_SDAT_IN;for(i=0;i8;i++){bdat=1;SCLK(0);wait();SCLK(1);wait();if(SDA_IN){bdat|=0x01;}EJRQC3003模块说明书Rev1.014}SCLK(0);wait();returnbdat;}voidI2C_WriteReg(u8regAdr,u8regValue){_i2c_start();_i2c_wr_byte(WriteADDR);_i2c_wr_byte(regAdr);_i2c_wr_byte(regValue);_i2c_stop();}u8I2C_ReadReg(u8regAdr){u8i;_i2c_start();_i2c_wr_byte(WriteADDR);_i2c_wr_byte(regAdr);_i2c_start();_i2c_wr_byte(ReadADDR);i=_i2c_rd_byte();_i2c_stop();returni;}//===========================================================================//SMB1351配置函数,在每次插入USB之后需要配置一次//芯片有3个版本:2325Y,2369Y和2365Y,功能一样并无差异,只是软件上操作上稍有不同//===========================================================================#defineVERSION_2325Y//#defineVERSION_2369YvoidSMB1351_Init(void){I2C_WriteReg(0x30,0x40);//寄存器“写”使能#ifdefVERSION_2325YI2C_WriteReg(0x11;I2C_ReadReg(0x11)|0x01);I2C_WriteReg(0x34;I2C_ReadReg(0x34)|0x20);#endif#ifdefVERSION_2369YI2C_WriteReg(0x34;I2C_ReadReg(0x34)|0x20);#endifI2C_WriteReg(0x00,0xAA);//电池端充电电流为3A,输入端限制电流为2AI2C_WriteReg(0x03,0xE3);//预充电转入快速充电电压点为3V,电池充电电压为4.20V//I2C_WriteReg(0x12;(I2C_ReadReg(0x12)&0x3F)|0x40);//设置快充充电电压为9V(芯片默认即为9V,可不设置)}//===========================================================================//电池充饱查询//================================================

1 / 15
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功