Any way to get Flex Timer clock frequency, K20dx256zvll10

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

Any way to get Flex Timer clock frequency, K20dx256zvll10

跳至解决方案
945 次查看
Cdn_aye
Senior Contributor I

Hi

We are using a 16Mhz crystal on a K20dx256 and I think it is upscaled to 96Mhz. We use the system clock with the PIT timer to measure a signal coming in on FTM0. The counts in the PIT are used to drive an output slightly scaled from the incoming signal. All this works, now I need to know the exact period of the PIT clock so we can do another calculation. I believe the clock is set to divide the system clock down by 8 but when I generate a signal on an output pin that I toggle when the PIT is loaded with 1000 counts I get 24kz. As far as I can see the numbers don't work. I am wondering if the bus clock isn't really running at 96Mhz/2 = 48 Mhz.

Is there any way to determine the period of the PIT clock exactly? I was hoping MQX had such a mechanism or if anyone could suggest a way to determine the PIT clock exactly.

Thanks for any advice,

Robert

标记 (5)
0 项奖励
回复
1 解答
743 次查看
DavidS
NXP Employee
NXP Employee

Hi Robert,

The K20DX256 would clock the PIT from the OUTDIV2/Bus Clock which typically is the core frequency divided by 2 (i.e. 96MHz/2=48MHz).

Regards,

David

在原帖中查看解决方案

0 项奖励
回复
2 回复数
744 次查看
DavidS
NXP Employee
NXP Employee

Hi Robert,

The K20DX256 would clock the PIT from the OUTDIV2/Bus Clock which typically is the core frequency divided by 2 (i.e. 96MHz/2=48MHz).

Regards,

David

0 项奖励
回复
743 次查看
Cdn_aye
Senior Contributor I

Hi David

Thank you, I can see that it is correction  now. I was overlooking the divide by 2 for the clock to bus.

Regards

David

0 项奖励
回复