I'm confused. The RM states:
High-frequency reference clock (ipg_clk_highfreq)
This clock is provided by the Clock Control Module (CCM). This clock remains on
during low-power mode when the peripheral clock is turned off, allowing EPIT to
use this clock in low-power mode. In normal mode, the CCM synchronizes this clock
to ahb_clk; in low-power mode, CCM switches to an unsynchronized version.
Which signal is the peripheral clock mentioned above? If you look at the clock tree, you'll see that the PERCLK derives from the IPG clock. The RM states:
Peripheral clock (ipg_clk)
This is the peripheral clock (PER Clock) which is provided (and optionally gated) by
the CCM. This clock is typically used in normal operations. In low-power modes, if
the EPIT is programmed to be disabled (via STOPEN or WAITEN), then the
peripheral clock can be switched off.
So, how can the PERCLK, which derives from the IPG clock (which is called "peripheral clock") stay on in low power, when the clock it derives from turns off in low power?
There seems to be a lot of name confusion going on in the RM:
IPG_CLK is called "peripheral clock"
PERCLK_CLK is called "high frequency clock"
CKIH is called "external high frequency clock"
In any case, the PERCLK derives from the IPG_CLK. The IPG_CLK turns off in low power modes, so how is it possible that the PERCLK stays on? Is the Clock Tree diagram wrong? Is the description wrong? Or am I just missing some vital piece of information?
PS I verified that option 2 (high frequency clock) is indeed the PERCLK (at 66 MHz out of reset) and not the 24 MHz CKIH.