I've got a tough one for the group this time. Yea, I know I've had more than my share of newbie moron questions but this time it is different.
I'm trying to figure out how to enable the charger to continue charging the battery while the Arduino is in sleep mode. I'm using the ArduinoLowPower.h library to put the chip to sleep and it works great.
There is a line of code in the CPP file: SCB->SCR |= SCB_SCR_SLEEPDEEP_Msk;
Can someone please tell me what these commands mean and where can I affect what appears to be the sleep mask?
Is there documentation on how to use the I2C interface to affect the charging chip? Specifically it looks like I need to set the chip into autonomous mode during my sleep routine and then return it to normal upon waking. Reg09[7] switches between Autonomous Mode and Host Mode. It looks like I just need to write a 1 to this register unless the sleep routine actually shuts down the charger chip
Any help is greatly appreciated.