D/A converter exercises




Triangle signal generation

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