Hello! I looking for a small routine that generate a triangle wave and in funtion of the input voltage in one of the analogue input (16c71) control the amplitude of the wave. In funtion of the amplitude generate a pulse width modulation output on one of the (16c71) digital output. The input voltage go from 0 to +5 v. Thanks for your help. Gustavo. gustavoc@pinos.com