limits of the timer module

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

limits of the timer module

1,992 Views
khumphri
NXP Employee
NXP Employee

This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.

 

Posted: Wed Nov 23, 2005  10:25 pm

 

Does someone know the limits to the frequency of the signal that the timer can handle???

 


 

Posted: Thu Nov 24, 2005  8:14 am

 

> Does someone know the limits to the frequency of the signal that the timer

> can handle???

 

The clock provided to the timer module is the bus clock. u have to check the frequency of the bus clk, as it is the limiting parameter to the timer.

 

Suppose ur bus clk is at 6Mhz. So, theorotically, ur timer cannot handle signals higher than 6 Mhz. If u apply a prescalar, then the frequency goes down. Suppose u apply a divide by 2 prescalor, then the timer wont be able to handle signals above 3 Mhz.

 


 

Posted: Fri Nov 25, 2005  3:33 am

 

A thot: Turn your thinking around. If it is the upper limits of frequency that are of interest one can drive the micro's external clock from the unknown, variable freq source and thereby accommodate a freq up to 16 mhz (or is it 25 Mhz on the HCS12?), then use the input capture to get interrupts from a known freq source, thereby enabling a compuation of the unknown freq.

 

For example, on an HC11 I drove the clock from a Rubium osc (10 nhz) and used the gps 1 sec ticks to trigger an input capture and thus make a feedback loop to "discipline" the Rube. Practically no glue hardware required.

 

Regards,

 

Labels (1)
0 Kudos
0 Replies