R
red_alert
Guest
Is there an ideal ratio (or any more complex formula) between the sampling frequency and the sample resolution (steps) of a PWM signal used to generate a sine wave?
For example, I want to generate a sine wave with a frequency of 1Hz and a peak voltage of 1V.
If I choose a sampling rate (frequency) of 1khz (1000 x 1Hz) and a sample resolution of 2-bit (4 discrete values) surely the generated sine wave will be distorted.
If I choose a sampling rate of 10Hz (10 x 1Hz) but the sample resolution would be 8-bit (256 discrete values) the output signal might be less distorted.
What's the mathematical approach of this issue?
For example, I want to generate a sine wave with a frequency of 1Hz and a peak voltage of 1V.
If I choose a sampling rate (frequency) of 1khz (1000 x 1Hz) and a sample resolution of 2-bit (4 discrete values) surely the generated sine wave will be distorted.
If I choose a sampling rate of 10Hz (10 x 1Hz) but the sample resolution would be 8-bit (256 discrete values) the output signal might be less distorted.
What's the mathematical approach of this issue?