Hi,
我们使用BQ25703A充电IC,采用1节电池,电池电压为4.35V。从文档看到,BQ25703A支持otg功能。
当我们在bq25703a vbus端接入鼠标等设备时,bq25703a会切换到otg模式,测量EN_OTG变为高电平,设置寄存器0x35[4]=1。
发现otg功能无效,鼠标不能使用,用示波器测量BQ25703A vbus拉高后又被拉低,读出寄存器0x35[4]也变为0
dump所有寄存器如下:
[ 175.208482] REG0x0 : 0x20e
[ 175.209057] REG0x2 : 0x0
[ 175.209493] REG0x4 : 0x10f0
[ 175.209914] REG0x6 : 0x200
[ 175.210175] REG0x8 : 0xa00
[ 175.210495] REG0xa : 0x0
[ 175.211006] REG0xe : 0xa00
[ 175.211204] REG0x20 : 0x2001
[ 175.211407] REG0x22 : 0x0
[ 175.211653] REG0x24 : 0xa00
[ 175.211856] REG0x26 : 0x0
[ 175.212058] REG0x28 : 0x3
[ 175.212263] REG0x2a : 0x0
[ 175.212465] REG0x2c : 0xd0e
[ 175.212725] REG0x2e : 0x7840
[ 175.213094] REG0x30 : 0x210
[ 175.213294] REG0x32 : 0x2b7
[ 175.213497] REG0x34 : 0x0
[ 175.213714] REG0x36 : 0x4a54
[ 175.214018] REG0x38 : 0x8120
[ 175.214340] REG0x3a : 0xa0ff
[ 175.214542] battery charge current: 0mA
[ 175.214744] battery discharge current: 768mA
[ 175.214946] VSYS volatge: 3712mV
[ 175.215150] BAT volatge: 3776mV
[ 175.215354] SET CHARGE_CURRENT: 0mA
[ 175.215556] MAX_CHARGE_VOLTAGE: 4336mV
[ 175.215760] INPUT_VOLTAGE: 3200mV
[ 175.215962] INPUT_CURRENT: 500mA
[ 175.216165] MIN_SYS_VOTAGE: 3072mV
[ 175.218607] status:
[ 175.218634] AC_STAT: 0
[ 175.218837] ICO_DONE: 0
[ 175.219041] IN_VINDPM: 0
[ 175.219242] IN_IINDPM: 0
[ 175.219447] IN_FCHRG: 0
[ 175.219650] IN_PCHRG: 0
[ 175.219854] IN_OTG: 0
[ 175.220057] F_ACOV: 0
[ 175.220261] F_BATOC: 0
[ 175.220465] F_ACOC: 0
[ 175.220479] SYSOVP_STAT: 0
[ 175.220486] F_LATCHOFF: 0
[ 175.220493] F_OTGOVP: 0
[ 175.220500] F_OTGOCP: 0
谢谢