Other Parts Discussed in Thread: TM4C129CNCZAD
Hello,
I have the need to save power in my system.
I've noticed that by turning the clock on/off to a peripheral, I can save a decent amount of power.
If I invoke ROM_SysCtlPeripheralDisable(), I notice that the clock to the peripheral is turned off. When i want to use the peripheral again, I invoke ROM_SysCtlPeripheralEnable(). After invoking ROM_SysCtlPeripheralEnable(), it seems like all of the registers retained their value after disabling the peripheral.
My question:
Is it safe to assume that the register values of the peripheral will be retained after I invoke ROM_SysCtlPeripheralDisable() and sometime later invoke ROM_SysCtlPeripheralEnable()? I want to make sure I'm not just "getting lucky" that the values are being retained. I want to make sure the register values are guaranteed to be retained.
Thanks!