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.

driver

Other Parts Discussed in Thread: BQ24160

hey every one 
now i m moving to the next step of my work 
i'm going to start writing the driver of the bq24160 
So plz if there is anyone who have any idea or some information 
just help me nd guide me 
thank you very much 

  • Hello Jbeli,

    I would recommend going through a quick internet search such as Google to see what has already been done.

    TI does not produce and support and embedded driver as discussed in the this forum post about the same topic.

    http://e2e.ti.com/support/power_management/battery_management/f/179/t/189874.aspx

  • okey 
    thank you Ryan May 
    Can you give me  hand of help plz  :) ? 
    i read the datasheet . 
    now i m starting to write the code 
    i declare the register nd their bits 
    what i need i want to know the next step ? 
    can u just plzz help me i need it so bad and thank u :) 

  • Hello,

    I am not sure I understand what you are asking help with. Are you saying that you have programmed the device but it is not operating correctly?

    Have you reviewed the GUI that is available for the EVM? This can help you quickly identify which registers you want to have set for your charging characteristics and which bits you need to control to enable and disable charging.

    Also have you had a chance to look at some of the open source code that others have used for this device?

  • thx for replying me :) 
    i start writing the code but i didn t finish it yet 
    yeah i download the GUI nd i m using it .

    for example i m going to write a function that chek if the mode  USB or the IN is working so i want to chek the bits B4,B5,B6; of the register 'Status/Control Register' 
    how can i chek that ? 

  • Hello,

    If you look on Pg. 26 of the datasheet it discusses how to request the contents of any of the control registers. Once you have this this register information you could AND the pulled register contents to isolate the bits you are interested in.