Other Parts Discussed in Thread: TIDA-00449,
Hello,
In the source code provided by TI in TIDA-00449 resource following part is not clear why it is done, as I am unable to find any reference in available documentation for the waiting performed in code snippet below.
File: drv_bq76930.c
void BqInitialisebqMaximo(void) { uint16_t count = 0; bqCoulomb = 0; bqTotalCoulomb = 0; bqBalanceIndex = 0; bqI2CError = FALSE; //BQ76930 need 400ms from SHIP-to-NORMAL transition to first read operation, datasheet, page 21. //ALERT will be set in approx. 990ms after SHIP-to-NORMAL transition. //Stay here for the alert to be set. while(TRUE) { delay_1ms(1); count++; if(BqIsAlert() == TRUE) { break; } else { if(count >= 1000) { //MCU is powered but in 1s ALERT is not set....error break; } } }
it would be helpful if anyone can provide documentation reference for above waiting operation.
Thank you