I am going to use LTC4162-L battery charger for my project.
For reference, I downloaded "LTC4162 Evaluation Software" from site.
In "LTC4162-SDK", it contains so many folders with name "LTC4162-xx" .
Please let me know to which folder should I refer for reference to develop of LTC4162-L battery charger.
Thanks in advance
The folders refer to each LTC4162 variant.
If you are using LTC4162-LAD, you would use the LTC4162-LAD folder. If you are using LTC4162-L41, you would use the LTC4162-L41 folder, etc.
Note that LTC4162-L is not an orderable part number. Refer to the part number you will be ordering. For more info on that, refer to the order information in the LTC4162-L datasheet.
There's a README file in the SDK with more info.
I am trying to program LTC4162-L using ST Micro-controller through I2C protocol.
Facing difficulty in establishing communication using I2C.
Not able to get any reply from LTC4162-L IC.
Could you please let me know the initial register settings to start with like enabling battery charger(config_bits_reg(0x14)), charger_state(0x34), system_status_reg(0x39), chem_cells_reg(0x43).
Like some basic register setting for stating initial communication.
If you can share me any software files with initial register settings to start communication with LTC4162-L IC.
Thanks in advance!
Default register states are given in the register table in the datasheet.
Thanks for your reply.
To start communication with LTC4162-L, the first register I am reading is "CHEM_CELLS_REG (0x43)".
This will give me the (chem [11:8]) correct version of the LTC4162 is connected in the circuit board.
Also it will give the "cell_count [0:3]". In my case CELLS0 and CELLS1 is connected to "INTVcc".
So cell_count value should give as "1". But it is showing as "0".
To get the cell_count, the battery charger should be enabled.
I enabled battery charger by writing data 0x00 to register "CONFIG_BITS_REG (0x14)".
But still I am not able to get the data by reading "CHEM_CELLS_REG (0x43)".
My initial register settings to check / identify the IC on board as -
1. Write data "0x00" to register "CONFIG_BITS_REG (0x14)"
2. Read register "CHEM_CELLS_REG (0x43)", to get the version of IC and number of cells connected to the system.
These two operations I am doing to start with my project. As I am receiving wrong value I am stuck here.
Is there any other settings I have to follow ?
Thanks in advance !!
You are not necessarily receiving a wrong value. From the cell_count bitfield definition:
So make sure the battery is charging.
To do so, you do not need to write anything to the IC. The CONFIG_BITS_REG register is alread 0x00by default, so writing to it is redundant.
If your I2C commands do not have an error message, a 0 response may indicate a communication issue. Due to that, it is best to try to read a register with a non-zero default. Try something known like vcharge_setting which should return a value of 31 (decimal) by default.
If that doesn't work, capture a scope plot of your communication and we can take a look.