This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Frequency measurement with XC161 chip

Hi

Since I have been asked to develop code to measure the frequency using XC161 microcontroller. Frankly I don't have any idea of implementing it.

However so far I have used the ADC to sample the sine wave of low frequency. Should I use compare and capture module in order to detect the rising edge? (Unless Im talking ***)

Your help would be greatly appreicated.

AJ

Parents Reply Children
  • What is the expected frequency range that you are trying to measure? How accurate do you have to be with the measurement?

    AN1 is not connected to an alternate function so are you thinking of a purely software method to do it?

    From your hardware is it possible to connect it in parallel (or buffered) to another port pin of the XC161?