Tool/software: Code Composer Studio
Hii,
I am using Bq76920 and host as ATTINY .
Circuit configuration is as follows
1. Using Battery Pack with 3s Config (all the circuit is configured as per the information in D/S)
2. at the HOST I am setting the following registers
1. SYS_CTRL1 --> 0x10
2. SYS_CTRL2 --> 0x43
3. PROTECT1 --> 0x8C
4. PROTECT2 --> 0x5B
3. PROTECT3 --> 0x50
I am trying to read the CC Registers to get the CHG and DSG States. I am performing the following steps to read the Registers
1. CCREADING = (readRegister(CC_HI) << 8) | readRegister(CC_LOW); // to get the ADC Value of the CC Reading
Questions:
1. How do I detect CHG State and DSG State ??? (I am trying to glow different Color LED to show status of battery level in charging/discharging state )
2. As in D/S, this is given that CC_ready bit goes hight every 250 ms and this will toggle the alert pin. In my case alert pin is not going high?