无论我这里29行至31行的配置如何改,只要33行没被注释SCT0的时钟始终是System clock ,即使我读出的SYSCON->SCTCLKSEL 为0x7 SCT0始终以System clock运行。这是什么原因????
Hi Xiangwen DU,
非常感谢使用NXP产品,很高兴为你提供技术支持!
以目前的情况下,我还不确定问题所在,能否请你将整个时钟的配置截图出来。
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------
你好这是我在配置软件中的时钟配置(通过示波器 推出SCT0的时钟源输出应为180Mhz)。
在程序里面修改SYSCON->SCTCLKSEL寄存器后依然没有用(通过livewatch 看到寄存器值确实是修改了的),
以及在SYSCON->SCTCLKDIV寄存器中修改分频值也没有用。
还有一个地方就是如果我没有在配置软件中使能fro_hf 时钟源,那么在修改SYSCON->SCTCLKSEL寄存器选择SCT0时钟源为fro_hf时SCT0将不会工作,但是使能fro_hf 时钟源时钟频率也不会是48Mhz 或者96Mhz。
谢谢!
发送自 Windows 10 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>应用
Hi Xiangwen DU,
谢谢回复。
根据你的描述,首先,SCT的时钟源时钟为main_clk,并且无法更改,其次连分频器也失效了。
还有问题就是fro_hf源无法被使能。
针对这些个情况我的建议是,
1. 第一,我建议你参考SDK 软件包中的sctimer工程,对比例程中的sctimer时钟源是如何配置的,可以发现是否是自己的误操作还是SDK config tool生成的代码存在bug.
2. 第二,用示波器通过clkout引脚测试一下各时钟源配置代码是否真起作用以验证代码有效性。
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------