Capture GPT value based on RTC event

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

Capture GPT value based on RTC event

跳至解决方案
2,072 次查看
thomaskofoedhan
Contributor III

Can anyone tell me if it's possible to source a general purpose timer from the CCM_CLK2 pin and capture it's value based on an events from the RTC block?

The reason I ask is that I want to synchronize an external oscillator connected to CCM_CLK2 pin with my 32,768kHz clock on the RTC_XTALI pin.

标签 (2)
0 项奖励
回复
1 解答
1,855 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Thomas

sorry you are right CLK2 is input,  Table 5-10 has misprint and document

will be updated.

Best regards
igor

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,855 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Thomas

Seems this is possible with CCM_EXT_CLK1, please check  Table 5-10. CCM External Signals,

sect.8.1.1.1 Muxing Options, GPT1_CLK_ROOT.

http://cache.nxp.com/files/32bit/doc/ref_manual/IMX7DRM.pdf

RTC interrupt event (example can be found in imx-test package, folder mxc_rtc)

can be used by procesor to read gpt value

www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,855 次查看
thomaskofoedhan
Contributor III

Hi Igor,

I'm a bit confused about your comment about the CLK2 being an output, but I think I understand where it comes from. I have also seen it somewhere in the datasheet or reference manual but can't find it again. But if you read chapter 5.1.3.3-4 of the reference manual it is explicitly mentioned as an input.

Thomas

0 项奖励
回复
1,856 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Thomas

sorry you are right CLK2 is input,  Table 5-10 has misprint and document

will be updated.

Best regards
igor

0 项奖励
回复