ICS Advent AOB8/16 Product Manual page 35

Table of Contents

Advertisement

AOB8/16 &AOB16/16 Manual
temp = 65535 - temp;
progstruct[i+counts/2+1] = (int)temp;
}
clrscr();
printf("Generating triangle wave, press any key to stop....");
sendtoport();
}
Function: sawcurve() - local routine
Purpose:
Input:
Calls:
Output:
void sawcurve()
{
int
double
if (counts == 0) return;
clrscr();
printf("Calculating sawtooth wave points....");
slope = 4095.0 / counts;
for(i = 0,i <counts;i++)
{
temp = slope * i;
progstruct[i] = (int) temp;
}
clrscr();
printf("Generating sawtooth wave, press any key to stop....");
sendtoport();
}
Function: menulist() - local routine
Purpose:
Input:
Calls:
Output:
Page 26
Calculate the points to create a sawtooth wave
None
None
None
i;
slope,temp;
Display the menu choice on the screen
None
None
None
/* end triangle curve */
/* sawtooth slope*/
/* end sawcurve */
Manual Number: 00650-010-6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aob16/16

Table of Contents