@@ -98,9 +98,10 @@ about. Lets recap the parameters which are common and the new ones
98981. Number of sample points: `sample_count`
99992. Number of cycles per envelop eye: $n = BASE\_FREQ * freq\_scale$. Where `BASE_FREQ` is any constant,
100100 currently its `50`.
101- 3. Number of sample points per cycle: $S = sample\_count/n$. This many samples make up each cycle of
102- the carrier wave. Larger `S` makes a smoother wave which less prominent steps. This however
103- cannot be larger than $2^{DAC\_BITS} - 1$. We use 6 bit DAC so `DAC_BITS` is 6 in our case.
101+ 3. Number of sample points per cycle: $S = sample\_count/n$. This many samples points will make up
102+ each cycle of the carrier wave. Larger `S` makes up for a smoother wave with less prominent
103+ steps. Note that this has nothing to do the DAC width. Its the number of sample points not the
104+ max value of it.
104105
105106In order to control both the carrier frequency and the signal frequency a relation need to be made
106107between them and the number of sample points.
@@ -109,11 +110,11 @@ We know that the total number of samples (`sample_count`) determines the signal
109110be said
110111
111112* $sample\_count \propto t_m$ where $t_m$ is the time period of the signal wave.
112- * $sample\_count \propto n * t_c$ where $n$ is as defined above and t_c$ is the time period of the
113+ * $sample\_count \propto n * t_c$ where $n$ is as defined above and $ t_c$ is the time period of the
113114 carrier wave.
114115* Thus $t_m = n * t_c$ <br/>
115116 or ${t_m/t_c} = n$ <br/>
116- or ${f_c/f_m} = n$ where $f_c$ & $f_m$ are carrier frequency & singal frequency respectively.
117+ or ${f_c/f_m} = n$ where $f_c$ & $f_m$ are carrier frequency & signal frequency respectively.
117118
118119This above relation makes it possible to change one frequency by keeping the other fixed and varying
119120$n$. For example in order to increase the signal frequency for some carrier frequency, we have to
@@ -123,7 +124,8 @@ From a general understanding the following relation between the frequencies and
123124established.
124125
125126* $f_c \propto 1/S$. Less number of points in one cycle of the carrier wave, more it the resulting
126- frequency of the wave.
127+ frequency of the wave. This implies the following
128+ * $f_c \propto n$. Less number of cycles per envelop eye, more is the carrier frequency.
127129* $f_m \propto 1/sample\_count$. Less is the total number of points, more is the overall frequency
128130 and thus the envelop/signal frequency.
129131
0 commit comments