beautypg.com

Sundance SMT356 User Manual

Page 24

background image

Version 2.1

Page 24 of 26

SMT356356 User Manual

while(1) {

The leds variable is just used to show action on the SMT356’s LEDs.

leds=pass++;

if(pass==16) pass=0;

ctrl_word=((samples-1)<<24) + 0x00100000 +( leds<<16)

+ (channels<<8) + (divider-1);

printf("%08X\n",ctrl_word);

Start the sampling.

comm_out(ctrl_word);

Reading the flags here is just for information.

// read the flags

temp=*flags;

printf("%08X\n",temp&0xFF00);

This causes the SMT600 to blank its graphical output window.

clearplot();

i=0;

j=0;