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.

Problème de lecture du BQ2060A (sans EEPROM ) avec MSP430G2553 situé sur le LaunchPad

Other Parts Discussed in Thread: MSP430G2553, BQ2060A

Bonjour,

Je suis en train de lire les valeurs des registres du BQ2060A qui est intégré sur une batterie SAFT (app . 7.8VDC - 6000mAh ) sans aucune EEPROM installé. Les connexions électriques entre le BQ2060A et MSP430G2553 ( LaunchPad ) sont GND, SMBUS-DATA (avec 10K pull-up à VCC ( 3.45V ) du LaunchPad ) et SMBUS - CLK (avec 10K pull-up à VCC ( 3.45V ) du LaunchPad ). J'ai également utilisé quelques cas de configuration du matériel, tels que la batterie avec un appareil portable, batterie sans appareil portable et tout chargeur et batterie avec un appareil portable et un chargeur ensemble.

De plus, je l'ai utilisé le ci-dessous les éléments logiciels basés TI au moyen de l'utilisation de Code Composer Studio / Version de TI 6.2.0.00048 et SLAVE_ADDRESS de 0x0b pour le BQ2060A. La PEC a également été désactivé au moyen de commenter la ligne connexe comme // #define SMB_DEFAULT_PEC_ENABLED /*! Define to enable PEC */ ":

SMB_Master00_AllProtocols ( "READ_WORD_TEST" et "READ_BYTE_TEST"/avec 2 bytes selectionnes)
SMB_Master01_ReadByte_Echo (avec 2 bytes selectionnes)

Lors de l'insertion d'un breakpoint  à la fin du cas de test du codage de SMB_Master00_AllProtocols (en particulier pour les cas " READ_WORD_TEST ", je vois parfois 1 , 32 , 80, 592 valeurs pour la valeur de " ret" dans la fenêtre d'expression alors que je vois " . , . , . , , " (virgules différentes et des points) pour la valeur de la " Resp_B " et ces valeurs ne changent pas dans un accord avec les commandes de fonction de la batterie , comme 0x08 , 0x09 , 0x14 , 0x16.. Voilà, j'écris une commande de 0x08 pour la lecture de la "valeur de la température " , mais je lis toujours " . , . , . , , " (virgules et des points) pour la valeur de la " Resp_B ".

D'un autre côté, je vois encore " . , . , . , , " ( virgules et des points) pour la valeur de la " Resp_B " et ces valeurs ne changent pas dans un accord avec les commandes de fonction de la batterie , comme 0x08 , 0x09 , 0x14 , 0x16 .. tout en insérant un breakpoint à la fin de l'affaire de test du code avec SMB_Master01_ReadByte_Echo (avec 2 bytes selectionnes).

Je serais très heureux si vous me le faire savoir quoi faire maintenant.

Merci d'avance pour vos commentaires très précieux,

Meilleures salutations,

R.K. Arikan

  • E2E is English language but let me use a Google Translate (below) to speed up process for team to look to further assist you.

    Title: "problem reading BQ2060A (without EEPROM) with MSP430G2553 on LaunchPad"

    "Hello,

    I'm reading the values ​​of registers BQ2060A which is integrated on a SAFT battery (app 7.8VDC. - 6000mAh) without any EEPROM installed. The electrical connections between the BQ2060A and MSP430G2553 (LaunchPad) are GND, SMBUS-DATA (with 10K pull-up to VCC (3.45V) LaunchPad) and SMBUS - CLK (with 10K pull-up to VCC (3.45V) LaunchPad ). I also used a few cases of hardware configuration, such as the battery with a portable, battery and portable device without any charger and battery with a portable device and a set charger.

    Also, I used the following IT based software components by using Code Composer Studio / IT version 6.2.0.00048 and SLAVE_ADDRESS of 0x0b for BQ2060A. The CEP was also turned off by the comment line as related // #define SMB_DEFAULT_PEC_ENABLED / *! Define to enable PEC * / ":

    SMB_Master00_AllProtocols ( "READ_WORD_TEST" and "READ_BYTE_TEST" / 2 bytes SELECTED)
    SMB_Master01_ReadByte_Echo (2 bytes SELECTED)

    When inserting a breakpoint at the end of the test case of coding SMB_Master00_AllProtocols (particularly for the case "READ_WORD_TEST" I sometimes see 1, 32, 80, 592 values ​​for the value of "Ret" in expression window when I see ".,.,.,," (commas and different) for the value of the "Resp_B" and these values ​​do not change in an agreement with the function commands of the battery, like 0x08, 0x09, 0x14, 0x16 .. Here, I write a 0x08 command for reading the "temperature value" but I always read ".,.,.,," (commas and points) for the value of the "Resp_B".

    On the other hand, I see again ".,.,.,," (Comma and points) for the value of the "Resp_B" and these values ​​do not change in an agreement with the function commands of the battery, like 0x08, 0x09, 0x14, 0x16 .. while inserting a breakpoint at the end of the test case code with SMB_Master01_ReadByte_Echo (2 bytes SELECTED).

    I would be very happy if you let me know what to do now.

    Thank you in advance for your invaluable feedback"

  • Hi Blake,


    Thank you very much for your valuable feedback that I'd already sent the English version of my request as can be seen in the below link:


    e2e.ti.com/.../541812


    By the way, I have already found a quick solution by means of using the below links in order to read the registers of the BQ2060A itself:


    forum.43oh.com/.../
    jan.rychter.com/.../msp430-i2c-usi-library-released


    On the other hand, I'm still eager to make TI's own SMBus library work in my project and still looking for a feedback from the community itself.


    Thanks again for the very valuable contributions of you,


    Kind Regards,


    R.K. Arikan