Where your signal is coming from, what is the amplitude would help to do the calculation.
BUT you can skip the Tone Decoder and use the PIC to do it.
11Khz => freq period = 90.909 uSec
13Khz => freq period = 76.923 uSec
Using PBP Pulsein could give great results.
OR use COUNT wich will return the frequency if you set it to 1Sec count.
That's the easy way, there's a tons of other method using PIC internal Timer/Counter wich will be really much accurate and code efficient...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks