This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TPS23880: TPS23880 写12h寄存器,切换模式,切换不了,12h的值一直是0xff

Part Number: TPS23880
Other Parts Discussed in Thread: TPS23881,

我们有个项目要做强供模式给非标的PD供电,之前使用的是tps23881,将其切换为manual mode,开启检测之后,强行供电可以成功,

后期因为缺料,只能换成tps23880,但是换成23880之后,模式切换不了,想写12h模式寄存器,寄存器的值一直是0XFF,写不进去

  • Hi

       具体见datasheet第52页,对于四线对有线端口,两个通道必须设置为相同的工作模式。否则,端口将不会执行发现,并且将忽略所有开启命令。

  • 我是4个通道都一起设置的,参数为0x7,0x7,SRAMCODE用的是01版本的

    uint8_t tps_SetDevice4PPowerAllocation(uint8_t device_i2c_address,TPS238x_4P_Power_Allocation_t allocatepower12,TPS238x_4P_Power_Allocation_t allocatepower34)
    {
    uint8_t value;
    uint8_t rtn;
    
        value = 0x88 | (allocatepower34 << 4) |(allocatepower12);
        rtn = tps_WriteI2CReg (device_i2c_address,TPS238X_4PWIRED_POWER_ALLOCATION_CONFIG_COMMAND, value);
        return(rtn);
    }
    

  • Hi

        如果上面确认没有问题,就确认写入的时序(确认数据有正确写入).