So this is going to sound a little strange. I have a rfm69hcw transiever connected to an atmega1284p mcu, and powered by way of an LDO regulator, and I am trying to find a way to undo the RF69.init() function. That's the goal here is the information and the problem:
if the radio has been initialized RF69.init(), then even if I have turned off the power to the radio by way of the LDO regulator. The MCU continues to draw 35mA in power down mode.
if the radio has not been initialized No RF69.init(), and I turn the power off to the radio with the LDO regulator then the consumption of the MCU during powerdown mode is around 1-5uA.
I know the cause and the effect, but I can't quite wrap my head around the why. Somehow the RF69.init() function is setting the mcu to some task, which doesn't end even if the radio is turned off and the mcu is placed into... well any of the sleep modes. (I have confirmed there is no power going to the radio). I'm wondering if anyone knows how to undo what the RF69.init() function is doing.
Charlie