Capture GPT value based on RTC event

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Capture GPT value based on RTC event

Jump to solution
1,112 Views
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.

Labels (2)
0 Kudos
1 Solution
895 Views
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

View solution in original post

0 Kudos
3 Replies
895 Views
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 Kudos
895 Views
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 Kudos
896 Views
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 Kudos