Close

Direct Digital Synthesis, anyone?

A project log for PyPPM: A Proton Precession Magnetometer for all!

A device for conducting Nuclear Magnetic Resonance experiments at Earth's field

bradley-worleyBradley Worley 07/13/2014 at 02:520 Comments

I wrote my first assembly code this past week, and it felt pretty good...

Using an old PPM prototype that had a 12-bit DAC on board, I wrote a bit of code that outputs a frequency tunable sine wave. The overall design is similar to Jesper's ATmega8 DDS code, but mine is designed to (A) be intermixed with my pre-existing C code and (B) operate inside a 125 kS/s timer/counter interrupt.


One step closer to PyPPM 2.0! :D

Discussions