D/A converter exercises




Sawtooth signal generation

Write a timer interrupt service routine that can generate a sawtooth signal using one of the DACs. The value of the signal should be calculated in the routine, do not use lookup table. The minimum value, step and duration should be given by variables. A flag bit should be used to enable/disable signal generation.