KL03Z: External Core Clock & Sleep Modes

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

KL03Z: External Core Clock & Sleep Modes

跳至解决方案
1,125 次查看
sarastout-grand
Contributor III

Hello,

I'm running a KL03 with an external clock at 6.144MHz. This external clock is clocking the core and the bus.

If I enter VLPS mode, the core clock is supposed to go to a deep sleep. How does this work with an external clock that continues to run? When I tried it, the code doesn't advance beyond the spot where the VLPS sleep mode was initiated. Is that normal? If so, why?

Thanks,

Sara

标签 (1)
标记 (3)
0 项奖励
回复
1 解答
977 次查看
mjbcswitzerland
Specialist V

Sara

Yes, that is what I mean with "the clock is stopped to the core" - it is gated off somewhere (most likely in the core itself).

There are also a few possibilities to stop certain clocks but let others run too (eg. IRC sources), which are configurable in the SIM or in the MCG (or other places, depending on exact chip being used).

Regards

Mark

在原帖中查看解决方案

0 项奖励
回复
3 回复数
977 次查看
mjbcswitzerland
Specialist V

Sara

In VLPS (and other stop modes) the clock is stopped to the core but it doesn't mean that the "clock source" stops.

Regards

Mark

0 项奖励
回复
977 次查看
sarastout-grand
Contributor III

Hi Mark,

So, does that mean that even though the core clock is "stopped" in the VLPS mode, if it is running on the external clock it will not actually be "stopped"? In my experiments this does not seem to be true. Even though my external clock keeps running, it seems that the code stops executing until after I wake it up from VLPS mode, as if the core is still stopped.

When I was reading more carefully, it sounds like the core clock is "gated off" as opposed to "Stopped". I presume that is referring to the clock gate that is after the OUTDIV1 block in the Figure 5-1 of the user manual. If that is true, then even if the external clock is still running, it makes sense that the clock won't get out to where it is supposed to go. This seems consistent with what I'm seeing. Do you agree?

Thanks,

Sara

0 项奖励
回复
978 次查看
mjbcswitzerland
Specialist V

Sara

Yes, that is what I mean with "the clock is stopped to the core" - it is gated off somewhere (most likely in the core itself).

There are also a few possibilities to stop certain clocks but let others run too (eg. IRC sources), which are configurable in the SIM or in the MCG (or other places, depending on exact chip being used).

Regards

Mark

0 项奖励
回复