| Electronics > Projects, Designs, and Technical Stuff |
| variable frequency square wave |
| << < (7/7) |
| ogden:
--- Quote from: IDEngineer on May 24, 2019, 08:03:04 pm ---Anyone else want to try explaining prescalers to this guy? I've taken my turn in the barrel, ready to sit back and :popcorn:. --- End quote --- Prescaler of stm32 timer is just clock divider. It can divide clock (and obviously frequency) by integer number. In frequency generation applications timer is integer divider as well. Your math of frequency dividers from alternate universe contains multiplier |O --- Quote from: ogden on May 24, 2019, 08:00:56 pm ---EDIT: I just know you're going to freak out over your answer being different than the number I gave. The reason is because my number comes from doing precise math, while in my equation above I rounded the value of the LSb. The exact equation is: (993000 / (72^06 / (2^32))) --- End quote --- Fact that you are able to write equation does not mean that timer is able to operate accordingly :-DD |
| mark03:
Guys... (assuming you are both guys due to the apparent fragility of egos!) I think a bit of reflection will show that the frequency resolution of any MCU timer-based divider scheme is (In other words, @ogden is correct.) It's too bad there is so much noise in this thread because the underlying question is actually very interesting. I posed a similar question a while back (https://www.eevblog.com/forum/microcontrollers/square-wave-synthesis-with-high-frequency-resolution/msg897489/#msg897489). The boring answer is "just use a DDS and square-up the sinusoid" but there are applications where it would be really nice to do all of this inside an FPGA. I still intend to look into this further, although that project is clearly on the back burner---the thread is more than three years old!! I wish there were a nice technical write-up on the design of the Si5351, describing how the topology was chosen, how it works, the key technical challenges and how they were solved, etc. |
| NorthGuy:
--- Quote from: ogden on May 24, 2019, 07:16:26 pm --- --- Quote from: NorthGuy on May 24, 2019, 07:12:14 pm --- --- Quote from: ogden on May 24, 2019, 05:39:53 pm ---Requirements are clearly stated in the OP: "0.1% accuracy of the frequency control". --- End quote --- If only the frequency must be accurate, then many MCUs have NCO or DCO peripherals which can generate frequency very accurately, at the expense of higher jitter. --- End quote --- Those usually are kinda fractional frequency dividers, right? Yes, that's option indeed - in case jitter of +/- clock cycle (of divider) is acceptable. --- End quote --- Since jitter is not specified, then obviously any jitter is acceptable. Otherwise, you need to have full specs first - jitter, rise/fall times, distortions - everything which is needed for the applications. Then you can think of the best method. It is silly to design something without specs, then rejects it because it doesn't meet unspecified specs. |
| Kleinstein:
--- Quote from: ogden on May 24, 2019, 07:16:26 pm --- --- Quote from: NorthGuy on May 24, 2019, 07:12:14 pm --- --- Quote from: ogden on May 24, 2019, 05:39:53 pm ---Requirements are clearly stated in the OP: "0.1% accuracy of the frequency control". --- End quote --- If only the frequency must be accurate, then many MCUs have NCO or DCO peripherals which can generate frequency very accurately, at the expense of higher jitter. --- End quote --- Those usually are kinda fractional frequency dividers, right? Yes, that's option indeed - in case jitter of +/- clock cycle (of divider) is acceptable. --- End quote --- The NCOs are more like DDS related, counting up the phase at a given rate and than directly give out the upper bit. Fractional dividers are similar, but updating the adder at a variable rate, set by the integer divider part. So the jitter is essentially the same, just a different control and implementation. |
| ogden:
--- Quote from: mark03 on May 26, 2019, 12:36:18 am ---I wish there were a nice technical write-up on the design of the Si5351, describing how the topology was chosen, how it works, the key technical challenges and how they were solved, etc. --- End quote --- Si5351 is nothing special. PLL+VCO with 600-900 Mhz range and dividers. Such clock generation approach is widely used since yr 1970 or so. Perhaps TI have more info in their documentation of clock IC's http://www.ti.com/product/CDCE913 |
| Navigation |
| Message Index |
| Previous page |