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.

CCS/BQ79606A-EXAMPLE-CODE: BQ79606A

Part Number: BQ79606A-EXAMPLE-CODE
Other Parts Discussed in Thread: TMS570LS0432

Tool/software: Code Composer Studio

Hii sir,

I went through the data sheet and register map , and some forms and got to know that i have to unmask the faults in main program and read the corresponding fault register to determine the fault that has occured.

So iam planning to do OVUV fault first .  If i write the value  (0x00) in ( 0x03 & 0x04 ) in writebyte in main.c , can i unmask the OV UV faults ?  And read the B1 bit of fault_summary register ( 0x206) ? What about the control 2 Reg for OVUV_EN , should i put 1 in B2 bit ? I request you to check if my flow is correct and suggest the changes to display the OVUV faults. And should i configure the reset registers for same ?

Thankyou

Regards

Poornesh .K

  • Hi Poornesh K,

    Correct, if you write 0x00 to addresses 0x03 and 0x04 you will unmask the OV/UV faults. To enable the OV/UV comparators, you'll also want to write 0b1 to bits [5:0] of register 0x29 (OVUV_CTRL). You will also want to write 0b1 to bit B2 in the CONTROL2 register.

    I suggest reading section 8.5.1.5 Fault Handling of the datasheet for more information about fault resetting, fault masking, and fault status. 

    Best Regards,

  • Thankyou for conforming and i have a request for suggestion , iam doing this battery management system project (BQ79606) as my university level project so should i use TMS570LS0432 MCU or go for the MSP430... MCU.  Iam a beginner for microcontrollers. 

    Regards

    Poornesh.K

  • Hi Poornesh,

    I suggest using the TMS570 MCU because we have sample code available for it. You would not be able to use the same sample code for the MSP430; you would need to rewrite significant portions of it. It will be much easier to use the TMS570.

    Best Regards,