Hi Team,
A customer has been testing battery monitor with CC2533 for a while, and he met some problem.
He uses our example code [as follows]. The value to monitor is 2.146v, it can be monitored if use a regulated source to jump the voltage to 2.146v. But if make a low temperature experiment[-40℃], some boards will print a not accurate voltage. Is the battery monitor influenced by temperature?
The code is below:
uint8 HalBatMonRead(uint8 vddMask) { uint8 rtrn = TRUE; #if (HAL_BATMON == TRUE) MONMUX = 0; // Setup BATTMON mux to measure AVDD5. BATMON = vddMask; halMcuWaitUs(2); // Wait at least 2 us before reading BATTMON_OUT. rtrn = (BATMON & BATTMON_OUT) ? TRUE : FALSE; BATMON = BATTMON_PD; // Turn off for power saving. #endif return rtrn; } //user guid P142 /* ------------- step 0.024 3: 1.93v 4: 1.954v 5: 1.978v 6: 2.002v 7: 2.026v 8: 2.050v 9: 2.074v 10: 2.098v 11: 2.122v 12: 2.146v 13: 2.170v 14: 2.194v 15: 2.218v 16: 2.242v 17: 2.266v 18: 2.290v 19: 2.314v 20: 2.338v 21: 2.362v 22: 2.386v 23: 2.410v 24: 2.434v 25: 2.458v --------------- step 0.169 26: 2.482v 27: 2.651v 28: 2.820v 29: 2.989v 30: 3.158v 31: 3.327v */ #define HAL_BATMON_MIN_POLL (12 << 1)
BR
Viki Shi