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.

Compiler: LP875761-Q1

Other Parts Discussed in Thread: LP875761-Q1

Tool/software: TI C/C++ Compiler

I need a Sample c code for the LP875761-q1 using i2c communication interface using the microcontroller TC 397

  • Hi,

    I have assigned this thread to our expert and you should expect a response from him by Monday.

    Regards,
    Ivan 

  • Hello,

    Linux drivers for the LP875x are available in public git repository. These can be used to help integrate the LP875x control to system software:

    LP8756x
    github.com/.../lp87565.c
    github.com/.../lp87565-regulator.c
    github.com/.../gpio-lp87565.c

    Note: Every header file is in the “include” folder starting from the root directory. So once in “include folder”,
    you can navigate to the relevant header file. For example, here is the LP87565.h file:
    github.com/.../lp87565.h.

    Thanks.

    Regards,

    Tomi Koskela

  • I was already provided withe these linux driver codes which is not helping me. The datasheet Of LP875761-Q1 is provided by texas there are a lot of registers which needs to be configured using i2c the linux driver codes does not tell anything about the configuration

  • Hello,

    I guess the question is, what you are trying to accomplish? LP875761A-Q1 starts by setting EN pin high with default 1V output voltage, I2C is only needed for diagnostics after that.

    Thanks.

    Regards,

    Tomi Koskela

  • Hi

    there are several functionalities of LP875761-Q1 which includes

    1 Buck converter load current measurement

    Buck load current can be monitored via I2C registers. The monitored buck converter is selected with the
    LOAD_CURRENT_BUCK_SELECT[1:0] bits in SEL_I_LOAD register. A write to this selection register starts a
    current measurement sequence. The measurement sequence is 50 μs long, maximum. The LP875761-Q1
    device can be configured to give out an interrupt (I_LOAD_READY bit in INT_TOP1 register) after the load
    current measurement sequence is finished. Load current measurement interrupt can be masked with
    I_LOAD_READY_MASK bit (TOP_MASK1 register). The measurement result can be read from registers
    I_LOAD_1 and I_LOAD_2. Register I_LOAD_1 bits BUCK_LOAD_CURRENT[7:0] give out the LSB bits

    2 spread spectrum mode

    3 sync clock functionality

    4 enabling and disabling regulators

    5 device reset scenarios

    6 PGOOD pin

    7 Power up and power down

    8 overvoltage protection thermal warning thermal shutdown and output power limit

    All these functionalities are achieved by configuring the LP875861-q1 regiaters. I want the software programmming for the LP875761-q1(which includes all the above functionalities as per datasheet provided by texas)

  • Hello,

    Unfortunately we don't have such example code available since every customer needs are different and therefore it is difficult to come up with example that would cover all possibilities. Most customers rely on the default OTP settings and just use EN pin to control the startup/shutdown. Note that if the default register settings are ok, there's no need to configure them again through I2C. I2C would be needed only for diagnostic and for example current monitoring as you mentioned. 

    To get started with the configuration, you could take a look at LP8756x configuration guide: https://www.ti.com/lit/ug/snvu590/snvu590.pdf?&ts=1589865907384 Note: this is for LP8756x which has more options in the register map than in the LP8757x. And this application note is done for the I2C configurable version in mind, where all settings must be configured through I2C. In your case with LP875761A, you could take a look at the default register settings and see what you want to change, and change only those.  

    Thanks,

    Regards,

    Tomi Koskela

  • Hi

    based on the configuration guide that you have provided is there no code that does all the steps provided in the configuration guide? Please can you check for it 

  • Hi,

    Unfortunately we don't have such code available. Also for the LP875761 most of these steps are not needed, since the configuration should be correct for the typical application as is. It is still unclear to me what setting do you want to change? 

    Thanks.

    Regards,

    Tomi Koskela 

  • Actually after reading the data sheet i am not able to get an idea of what all settings needs to be changed . Can you please help me out of what all registers needs to be configured as part of software since there are so many registers

  • Hi,

    Datasheet does not have the default settings available for each OTP spin. The default OTP settings are in the technical reference manual, which will be published on release of the device. Since this device is not released, these documents are not available publicly. We have this information available, but not publicly. If you can contact your regional sales team for more information.

    In general the LP875761A is configured so that the bucks will start with the default 1V voltage as soon as you set EN pin high. So no SW configuration needed for basic operation. Only if there is some specific setting, like controlling GPIOs, specific fault detection mode to suit your system better etc. you should configure the registers through I2C. I would say in most cases no configuration is needed. I2C is mainly used for diagnostic, or for example reading the load current value. We have the setup sheet available for this OTP, where you can clearly see the configuration and is there something that needs changing to suit your system better. 

    Thanks.

    Regards,

    Tomi Koskela

  • Hi

    Thanks for the information you mentioned about some set up sheet right could you please share it.

  • Hi

    You told about a set up sheet right? can you share it

  • Hello,

    Tomi is out of office until Monday 5/25. Thank you for your patience.

  • Hello,

    Since this device is not released, these documents are confidential and not available publicly. Please contact your regional sales team for more information.

    Thanks.

    Regards,

    Tomi Koskela