Sundance SMT356 User Manual
Page 25
Advertising

Version 2.1
Page 25 of 26
SMT356356 User Manual
Continue to read the FIFO while the flags indicate it is not empty.
while( ((temp=*flags & 0xFF00)) != 0xCC00) {
temp=*fifobase;
Plot a pixel for each sample point in each channel on a separate trace.
plot(i/8,(i&7)*32+(temp>>11),0xff);
i++;
Every 32 pixels, redraw the window. This just makes the ‘scope trace a little
smoother.
if((i%32)==0) updateplot();
}
updateplot();
This is just for information.
printf("\nRead %d words\n",i);
A little check to see if all of the data was read properly.
if(i==samples*active_channels) printf("ok\n");
else printf("data length
error\n");
This is just for information.
for(i=0;i!=16;i++);
temp=*flags;
printf("%08X\n",temp&0xFF00);
}
}
Advertising