Advanced Member level 3
I want to know how to configure TMR1 in dsPIC33FJ12MC202 to count pulses. I am trying to make a frequency counter. The dsPIC will run at 8 MHz x 4xPLL = 32 MHz. I will be using Timer2 to generate exact 1 sec delay. The Timer1 have to count the pulses on T1CK pin during 1 sec and display it on LCD. I have done some coding but I am not getting exact value. For 500 KHz it displays as 487.x KHz. I am attaching my mikroC PRO dsPIC project and Proteus simulation file.