Hi,
I am actually working on RTI module , where i need a delay of 10ms, so every 10ms it generates an interrupt and the led toggles.
As per my understanding , for 10ms delay the calculations as follows:
RTICLK = 110M Hz , Counter Freq = 10MHz --------->frequency set in halcogen. what is the prescalr value here ? should i consider this frequency for calculations or RTICLK?
for my calculations i have taken 10MHz i.e time period = 1/ 10M = 0.1micorsecs
for 10ms delay :
counter value = required delay / timer resolution ---> 10ms / 0.1microsec = 10000
1. Is the calculations and assumptions correct for getting the counter value.?
2. when i give this counter value and check the output in oscilloscope the time period what i am getting is 447ms.Is there something which i am missing while calculating?
3. What is the maximum delay i can get from this timer resolution?3857.RTI - 1.zip
Attaching the entire project for reference.
Please do explain more about Prescale register of RTI MODULE.and how to get counter values for various delay values.
Thanks and Regards,
Shruthi