HI all,
Am working with an application to read the frequency based on that i need to drive DAC. To read frequency am using keyboard interrupt as a input pin (for frequency input ) in falling edge trigger. In the ISR (keyboard interrupt) placed a global variable for counting in an interval of 100ms. Actually testing with an input frequency of 50HZ for that am getting (20 to 30) counts.
why this much counts oscillating for a constant 20ms interval and also why this counts occurred because for a falling edge interrupt (100ms/20ms = 5counts) +/- 2counts instead am getting (20-30). Kindly give me suggestions to improve the application, to read the exact frequency.
Thanks in advance,
Regards,
Santhoshkumar.
Am working with an application to read the frequency based on that i need to drive DAC. To read frequency am using keyboard interrupt as a input pin (for frequency input ) in falling edge trigger. In the ISR (keyboard interrupt) placed a global variable for counting in an interval of 100ms. Actually testing with an input frequency of 50HZ for that am getting (20 to 30) counts.
why this much counts oscillating for a constant 20ms interval and also why this counts occurred because for a falling edge interrupt (100ms/20ms = 5counts) +/- 2counts instead am getting (20-30). Kindly give me suggestions to improve the application, to read the exact frequency.
Thanks in advance,
Regards,
Santhoshkumar.