Any way to get Flex Timer clock frequency, K20dx256zvll10

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

Any way to get Flex Timer clock frequency, K20dx256zvll10

Jump to solution
884 Views
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

0 Kudos
Reply
1 Solution
682 Views
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

View solution in original post

0 Kudos
Reply
2 Replies
683 Views
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 Kudos
Reply
682 Views
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 Kudos
Reply