I want to measure 100 Hz to 6Khz frequency and display the value in LCD. I have completed the coding by using CCP - capture mode in PIC and the program executes well but the problem is, there is an error of about +/- 10Hz difference with my actual frequency. I want to reduce the error of about +/-2Hz. Im using 4Mhz external crystal. Is it possible to achieve? or do i have to increase my crystal?
also ext crystals tends to have slightly different freq. than rated one. you have to compensate with that, if you have oscilloscope measure the exact freq of your crystal
- - - Updated - - -
name the pic device you are using..
also ext crystals tends to have slightly different freq. than rated one. you have to compensate with that, if you have oscilloscope measure the exact freq of your crystal