Hello,
I'm using tivaware functions to check the status of our hibernate battery:
HibernateLowBatSet(HIBERNATE_LOW_BAT_1_9V); HibernateBatCheckStart(); while ( HibernateBatCheckDone() > 0 ) { //wait until battery measurement is ready } uint32_t lowBattery = HibernateIntStatus(false); if ( (lowBattery & HIBERNATE_INT_LOW_BAT) > 0) { return true; }
The issue is that as soon as the low battery flag is set, it remains set even if VBAT has gone back up over the threshold. The only way I have found to clear that bit is to manually set the LOWBAT bit in the HIBIC register.
So, two questions:
1) Is there a tivaware function that will clear that LOWBAT flag?
2) What is the canonical method for direct register access in a tivaware/CCS environment?
However, once VBAT drops below that threshold, the flag set by