Hi,
I´ve already told you how to generate a sinewave with INT16 range....
I want to multiply the incoming sine wave signal (1vpp) 50 Hz with 1.25 dc offset with internally generated sine function.
This is a vague description, because you can´t multiply a single ADC value with a sinewave.
I assume indeed you want to to a correlation or a DFT.
To safe processing power this usually isn´t done in "voltage" level and float values, instead they claculate on binary level (LSB) with integer values.
And then - after the calculation - the result may be multiplied with a float value - if really needed.
A DFT as well as a correlation works with a window of n samples. n ADC samples, n table values (in your case the sine values).
This needs to be specifed first.
I strongly recommend to do first things first. Decide the specifiactions of your system:
* What is the input signal: voltage range of interest, frequency range of interest....I assume your input frequency may vary and your input voltage may vary (at least a bit). Also: is it a pure sinewave with 0% distortion? If not, then you need to specify the distortions (waveform or overtones, amplitude range of overtones)
* specify your output signal: What value(s) do you want to calculate? How often, with what resolution, with what precision?
I know this are a lot of "annoying" questions. But without some technical informationns about your application I will not be able to help.
Klaus