Hi ,
I need to measure the frequecy of the square wave signal (10 to 15khz) connected to one of the NHET pins. I know that i need to use the PCNT instruction to measure this frequecy. I have few doubts in understanding of working of PCNT instruction. Can any explain clearly working of this instruction.
It would be great helpful, if someone expalins me how to calcualte the frequecy from the PCNT instruction data. Explain me in detail how to choose the hr and lr for my requirement (factors to be considered. My VCLK2 is 16mhz.