This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RM41L232: How to read ADC signal Frequency on ADC pin in RM41L232 ?

Part Number: RM41L232
Other Parts Discussed in Thread: HALCOGEN

Hello,

I am new to Hercules family MCUs, I am using RM41L232 for one of my projects, In that, I need to detect the 0-5KHz frequency of ADC signal applied to an ADC pin.

Is there any workaround possible that I can detect frequency of the signal on the ADC pin for RM41L232.

  • Hello Jagir,

    https://www.ti.com/tool/HALCOGEN

    The HALCoGen has an example of configuring ADC module and reading sampled data from ADC FIFO.

    The ADC itself can not detect the signal frequency. But you can estimate the signal frequency from the sampled data (sampling frequency should be at least the double of the input frequency). 

  • Hello Wang,

    I got what you said, but here I would like to describe to you about my use case scenario.

    In my project, we have a HET module to generate 2KHz 12V sine wave signal to operate load & this signal is given as feedback to ADC for fine-tuning.

    Now in ADC, we will check it's voltage to make sure it's a perfect sinewave without any glitch/distortion. so How to check it's the frequency to be exact 2000Hz ?

  • Hi,

    As I said, the ADC is not able to measure the frequency. You can feed the NHET 2KHz PWM output back to another NHET pin. The NHET is capable to measure the frequency and duty-cycle of an input PWM signal.