I am still not seeing the output waveform I expect. If I drive a full scale triangle wave in to the channel A digital port in signed integer mode please draw the resultant waveforms out of the IOUTA1 and IOUTA2 pins.
Input waveform ==> If(up) begin
DA[15:0] = DA[14:0]+1;
end else begin
DA[15:0] = DA[14:0]-1;
end
if (DA[14:0]=7FFF])begin
up = 0 ;
DA[15] = DA[15:0] ;
end
if (DA[14:0]=0000])begin
up = 1;
DA[15] = ~DA[15:0] ;
end
output IOUTA1 ==>
output IOUTA2 ==>
Thanks