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
  • Hi Chris

    Thank you for dropping some hints. I am now famaliar with DAVE software and it is quite useful.

    Basically my signal (sine wave) is connected to AN channel 1 so that my microcontroller sample data 25us. This is where I am currently struck at the moment.

    Frequency measurement is completely new subject to me. In the meantime Im still learning to use XC161's various modules. I admit it is the powerful microcontroller that I have ever worked with.

    I am still thinking of the suitable method to measure the frequency at the moment.

    AJ

Reply
  • Hi Chris

    Thank you for dropping some hints. I am now famaliar with DAVE software and it is quite useful.

    Basically my signal (sine wave) is connected to AN channel 1 so that my microcontroller sample data 25us. This is where I am currently struck at the moment.

    Frequency measurement is completely new subject to me. In the meantime Im still learning to use XC161's various modules. I admit it is the powerful microcontroller that I have ever worked with.

    I am still thinking of the suitable method to measure the frequency at the moment.

    AJ

Children