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.

BQ27421EVM-G1B: gauge communication

Part Number: BQ27421EVM-G1B

Hi

I have lots of questions regarding this documentation.

http://www.ti.com/lit/an/slua801/slua801.pdf

May I know is the processor used is MSP430 and BMS used is BQ27421?Please have a look the attached file and reply ASAP.Thank..Query for gauge communication.zip

Rgds

Nazri

  • Hi Nazri,

    I do not believe it is the msp430,but i could be mistaken. I  will let the app note writer comment on this.

    thanks

    Onyx

  • This app note is processor platform independent.

    You must implement these generic IO functions for your platform (e.g. MSP430:

    extern int gauge_read(void *pHandle, unsigned char nRegister, unsigned char *pData, unsigned char nLength);
    extern int gauge_write(void *pHandle, unsigned char nRegister, unsigned char *pData, unsigned char nLength);
    extern void gauge_address(void *pHandle, unsigned char nAddress);

    These functions usually call processor specific APIs that give access to the bus (I2C). They support an (optional) context pointer (pHandle), that you can use to pass information from your upper layers to the processor specific APIs (if required) but other than that they are simple abstractions of byte I/O via the actual bus that the gauge is connected to.