To provide a circuit for generating triangular wave digital data in which the offset data, amplitude data and repetitive frequency data can be easily set by subtracting the reference clock pulse from the number of overflow stages through the number of step start stages and outputting the triangular wave digital data from the data output terminal.
The offset data m are inputted to a data input terminal 14a of a 2nd sequence logic circuit 14 and the number of step start stages of a staircase wave is set before the circuit 14 is started. When a high or low signal of the addition/subtraction selection data k is applied to an addition/subtraction selection data input terminal 14d, the reference clock pulse that is given to the reference clock input terminal 14c is subtracted from the number of overflow stages through the number of step start stages and the triangular wave digital data are outputted from the terminal 14d. Thus, the output of necessary triangular wave digital data can be easily obtained.