Sundance SMT356 User Manual
Page 23
Advertising

Version 2.1
Page 23 of 26
SMT356356 User Manual
This bit is necessary to ensure that the hardware of the SMT332 is in a known good
state.
// set mux signal to known state
for(i=0;i!=16;i++);
*emifce3=0xffff3f23;
for(i=0;i!=16;i++);
fifobase=(unsigned *)0x0300c000;
*fifobase=temp;
fifobase=(unsigned *)0x03008000;
*fifobase=temp;
fifobase=(unsigned *)0x0300c000;
*fifobase=temp;
for(i=0;i!=16;i++);
*emifce3=0x00000030;
for(i=0;i!=16;i++);
Here we go with the main application.
//
// start of scope loop
//
pass=0;
Select a full capture size of 256 samples.
samples=256;
Enable all channels. Remember there is one enable bit for each channel.
channels=255;
active_channels=8;
Set the clock divider to 10.
divider=10;
Advertising