This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C123GH6PZ: Configuration of two system clock speed

Part Number: TM4C123GH6PZ
Other Parts Discussed in Thread: EK-TM4C1294XL

How to configure and switchover between two different system clock speed?

Say example, I need to use 80 MHz clock speed during regular operation (Main power is ON) and need to use 40 MHz clock speed during low-power mode with battery back-up(Main power of OFF)?

My program should run normally at 80 MHz and upon main power ON, it should switch to different system clock speed of 40 MHz upon detecting the main power OFF condition.

Please share sample code to do the above task.