gary36
Full Member level 4
I am newbie in DSP and starting from ground up. I have basic questions
1. I have an analog input 1Vpp AC sine wave (1.5v offset) connected to DSPIC 10 bit ADC. I have corrected for offset by subtracting 512 counts corresponding to 1.5v. Now I have to scale the digital counts to field value ( 1vpp). What should the scaling factor? Should it be 1/1023*adc value?
2.What would be the impact if scaling factor is increased to some large value (say 10)?
3. What should be the datatype in performing these operations, should it be UINT16 or double?
4. How should we decide sampling rate (above the nyquist rate)? Is it dependent on the execution time of the algorithms?
5. Finally any good resources that explains with examples , the time budget calculations.
1. I have an analog input 1Vpp AC sine wave (1.5v offset) connected to DSPIC 10 bit ADC. I have corrected for offset by subtracting 512 counts corresponding to 1.5v. Now I have to scale the digital counts to field value ( 1vpp). What should the scaling factor? Should it be 1/1023*adc value?
2.What would be the impact if scaling factor is increased to some large value (say 10)?
3. What should be the datatype in performing these operations, should it be UINT16 or double?
4. How should we decide sampling rate (above the nyquist rate)? Is it dependent on the execution time of the algorithms?
5. Finally any good resources that explains with examples , the time budget calculations.