hi all,
after a mockup phase using evalkit bonded to our custom board every thing was fine
wee get first batch of max77840 embdedded IC and I get strange results
it doesent charge ( even with default config)
heres's an extract of current registers config and statuts (I'm not exporting everything but if you need to see something else feel free to ask )
MAX77840 Batt config POR = 1 NomCap : 0 IchgTerm : 0 VEmpty : 0MAX77840 Charger Registers Interrupts : bypI 0 bat2socI 0 batPI 0 batI 0 chgI 0 topoffI 0 chginI 0 aiclchginI 0 Masks : bypM 1 bat2socM 1 batPM 1 batM 1 chgM 0 topoffM 0 chginM 1 aiclchginM 1 STatus : bypOk 1 bat2socOk 0 batPOk 1 batOk 1 chgOk 1 topoffOk 0 chgOknOk 0 aiclchginOk 1 DTLS00 : batpDtls 0 ovpDrvDtls 0 VBusDetDtls 1 chgInDtls 0 DTLS01 : chgDtls 8 batDtls 4 TReg 0 DTLS02 : bypDtls 0 aiclDtls 0 chgInDtls 0 Conf00 : mode 5 wdten 0 spread 0 disibs 0 disCdCtrl 0 Conf01 : fchgTime 0 fsw 0 chgRstrt 1 lSel 0 pqEn 1 Conf02 : chgCc 9 otgIlim 0 Conf03 : toIth 2 toTime 3 ilim 3 Conf04 : chgCvPrm 22 minVSys 2 Conf06 : wdtclr 0 chgprot 0 maxotgEn 0 otgDc 0 enThm 0 ledEn 1 Conf07 : disQbatoff 0 regtemp 6 wdQbatoff 0 Conf09 : chginIlim 15 ovpdrvCtl 0 Conf10 : disskip 0 todebEn 0 wdQbatoff 0 Conf11 : vbypset 0 Conf12 : b2sovrc 4 vchginReg 0 chginsel 1 chglpm 0MAX77840 ChargeDetection Registers INT : VDNMon 0 DxOvp 0 DcdTmr 0 ChgDetRun 0 ChgTyp 0 STS : VDNMon 0 DxOvp 0 DcdTmr 0 ChgDetRun 0 ChgTyp 0 MSK : VDNMon 1 DxOvp 1 DcdTmr 0 ChgDetRun 0 ChgTyp 0 ChginIlim : chginIlim 0 CTRL1 : CdpDet 0 DcdCpl 1 CdDelay 1 Dcd2sCt 0 Rfu 1 ChgTypMan 0 CTRL2 : DisEnu 1 noAutoIBus 0 noBcComp 1 DxOvpEn 0 DpdnVdEn 0 SFOutOrd 0 SFOutAsrt 0 CTRL3 : Apple1A 0 DcpInMax 0 cdp500mA 0 UsbLowSp 0 QCTRL : EnuCtrlEn 0 EnuEn 0 DpdVdEn 0 DpVd DnVd 0MAX77840 System Registers pmicId : id_h 0 id_l 4 intSrc : b2sovrcInt 0 SYSInt 0 fgInt 0 sysInt 0 chgrInt 0 intSrcMsk : b2sovrcInt 1 SYSInt 1 fgInt 1 sysInt 1 chgrInt 1 SysIntSrc : tShdnInt 0 sysOvLoInt 0 sysUvLoInt 0 lowSysInt 0 t140CInt 0 t120CInt 0 SysIntSrcMsk : tShdnInt 1 sysOvLoInt 1 sysUvLoInt 1 lowSysInt 1 t140CInt 1 t120CInt 1 topSysStat : tShdnStat 0 sysOvStat 0 sysUvStat 0 lowSysStat 0 t140CStat 0 t120CStat 0 lsCnfg : lsen 0 lshyst 3 lsdac 3 biasEn 0 safeoutctrl : ensafeout 0 actdissafeo 0 safeout 1 softRst : softRst 0MAX77840 M5 fuel gauge jeita TAlrtTh : MaxTempAlrt 0 MinTempAlrt 0 TAlrtTh2 : TempWarm 0 TempCool 0 JeitaVolt : ColdChargeV 0 HotChargeV 0 RoomChargeV 0 JeitaCurr : ColdCoeff 0 HotCoeff 0 RoomCoeff 0 CHargeState 0: DomainSoc 15 ChargeCUrrent 0x10 CHargeState 1: DomainSoc 14 ChargeCUrrent 0x0C CHargeState 2: DomainSoc 13 ChargeCUrrent 0x0C CHargeState 3: DomainSoc 12 ChargeCUrrent 0x0C CHargeState 4: DomainSoc 11 ChargeCUrrent 0x0C CHargeState 5: DomainSoc 10 ChargeCUrrent 0x0C CHargeState 6: DomainSoc 9 ChargeCUrrent 0x0C CHargeState 7: DomainSoc 8 ChargeCUrrent 0x0C SmartChgCfg : DisJeita 0 UseVF 0 EnSC 0 EnSF 0 config & status Status : Br 0 Smx 0 Tmx 0 Vmx 0 Bi 0 Smn 0 Tmn 0 Vmn 1 dSOCi 0 ThmHot 0 lsysmx 0 Bst 1 POR 1 lmn 0 FullDet 0 VAlrtTh : MaxVoltageAlrt 0 MinVoltageAlrt 0 SAlrtTh : MaxSocAlrt 0 MinSocAlrt 0 ATrate : 0 Config : FCFE 0 Ss 0 Ts 0 Vs 0 FGCC 0 AINSH 0 Ten 0 Tex 0 SHDN 0 I2CSH 0 ICFE 0 ETHRM 0 FTHRM 0 Aen 0 Bei 0 Ber 0 Config2 : dSOCen 0 TAlrtEn 0 LdMdl 0 OCVQen 0 Mesurements Current : 21.000000 AVg 3.437500 Batt : 3588 AVg 3589
it looks that It didnt see CHGIN correctly (ChgDtls=0x08 & mode=0x05)

Hw schematics is based on eval kit and datasheet basic design
my concern is that VUSBDET and OVPENB are floating
can this be a cause of CHGIN detection error
??
if yes Is there a solution to disable VUSBDET and CHGIN-UVLO
it look also that current reading is not good
general current draw should be about 300 to 400 ma when no suply is connected and I read between -1700 and -2700 with or without supply
on this subject avgCurrent decoding format is well defined in datasheet but for current itself there is no details on how to decode it not even a unit definition
(when using max 17303 or others the units and decoding are defined for all registers with equivalents unit but there is no similar chapter in datatsheet for the 77840)
Edit Notes
adding hello[edited by: gasol at 4:15 PM (GMT -4) on 27 Mar 2023]