
// Generates an Square Wave Signal on Interrupt port pin EXT1

signal void ADC0_Square (void)  {
  float volts;        // peak-to-peak voltage
  float frequency;    // output frequency in Hz
  float offset;       // voltage offset
  float duration;     // duration in Seconds

  volts     = 3.3;
  offset    = 1.65;
  frequency = 2400;
  duration  = 0.5;

  printf ("Square Wave Signal on Interrupt Port 1.4 n");

  while (duration > 0.0)  {
    INT1 = volts + offset;
____^
*** error 34, line 65: undefined identifier
    swatch (0.5 / frequency);
    INT1 = offset;
____^
*** error 34, line 67: undefined identifier
    swatch (0.5 / frequency);
    duration -= 1.0 / frequency;
  }
}

ADC0_Square()
^
*** error 34, line 73: undefined identifier



LA `P1_4
