This is sample code for the "Scope Noob" series on hackaday.com. Here I'm showing how to use an oscilloscope to measure signals generated using an R/2R ladder and a microcontroller.
Since the digital outputs are split between two different ports on the microcontroller you can measure the time between writing the outputs of one and the next.
Learn more by reading the entire post (live on 12/9/14)
Or watching the video (also live on 12/9/14)