// experi8d.c

#include "fast_sin.h"

extern unsigned get_port(void);

main(void)
{
  int x;
  unsigned port,da1;

  if(!(port = get_port()))
  {
    printf("No board found\n");
    exit(0);
  }

  da1 = port + 8;

  printf("This puts a faster sinwave on DAC1.\n");
  printf("Both DACs have their grounds on pin 1 of header 1.\n");
  printf("DAC1's output is on pin 15 and DAC2's on pin 14.\n");
  printf("Press any key to begin, then press any key to end the test.\n\n");
  getch();

  disable();

  while(!kbhit())
  {
    for(x=0; x<last; x++)
    {
      if(kbhit())
        exit(0);

      outp(da1,sin_table[x]);
    }
  }
  outp(da1,0);
  enable();
}

// experi8d.c
