As for the timer block use the bus clock (according the related registers ),firstly you need calculate the bus clock , then you can get the time of timer increment 1.
Below is the mainly calculate process ( MC9S12XHZ512):
You can according your configuration of register and the calculate procedure , get the result.
If you still have any question, welcome to the community discuss.
Thanks for replay , I have not selected PPL.
What actually I want to do , I am using Input capture mode of MC9S12XHZ512 for calculating frequency and duty cycle of square wave from 1KHz to 10KHz , I have attached image of setting i have done in codewarrior.
My problem is that when I try to display frequency on my LCD display I am getting random charter on , I also have problem with interrupt input capture mode I have enable input capture mode in codewarrior , but i'm not able to find it in program , I want to write my display and calculation code in interrupt sub routine of input capture mode. I have posted my code below.
I'm using 16MHz crystal
Thanks for replay , I done that ,
Now my problem is this calculation .
unsigned int time_interval;
unsigned int t,t1,t2;
unsigned int j,k=0;
unsigned char buffer;
I am not able to convert from int to float.