Generates sine and cosine wave forms to demonstrate D to A operation. Use a data buffer for maximum speed (not necessary for 4 mS samples & 1.0 Hz signal). Output clips at a bit 0 and 3.3 V, so use AMPLITUDE <= 0.4 and OFFSET = 1.1. Zoom Horizontal scale out on MSOX2012A scopes and wait for refresh. Without wait, max. freq. (with both channels) is about 2 kHz.

Dependencies:   mbed

Wiki pages

Sort by: Score, Alphabetical, Date