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.

Converting only a specific part to digital in a ADC code for sine wave

Other Parts Discussed in Thread: MSP430FR5969

I was exploring about the ADC in the MSP430FR5969.Is is possible to convert only a specific part in a sine wave and get a digital output apart from converting the entire wave?

  • How are you going to know which part you're in before you have measured something?

    But if you are sure about your timing, you can stop and restart the ADC.

  • How are you going to know which part you're in before you have measured something?

    By detecting the zero-crossings of the input signal. But that would require additional analogue input hardware and the knowledge of the frequencies involved, and probably defeat the purpose of using the ADC of an MCU in the first place.

    Stated differently, it is useful only for known signals like mains (240V/50Hz or 120V/60Hz).

  • If you are interested in part(s) of continuous (pure) sine wave, then best approach would be just continuous sampling, analyzing ADC data and dropping unneeded samples. Any other approach like starting conversions from external circuit can introduce lag which could be nondeterministic, especially if interrupts are involved, not to mention possibility of noise causign false triggers.

  • You are correct.
    But I "decoded" the OP's question as if he wants to avoid exactly that.

    ... not to mention possibility of noise causign false triggers.

    In case of the ZXD for mains voltages, this were mostly EMI problems, which finally had an impact on both hardware and software ...

**Attention** This is a public forum