Hi,I wrote this .ini file as signal function to my program: SIGNAL void int0_signal (void) { int i=0 int j=0; while (1) {
while(i<35) { PORT8 |= 0x01; /* pull PORT 3.0 high */ swatch (0.001); /* wait 50 milliseconds */ PORT8 &= ~0x01; /* pull PORT 3.1 low */ swatch (0.001); i++; } while(j<2) { PORT8 |= 0x01; /* pull PORT 3.0 high */ swatch (0.0005); /* wait 50 milliseconds */ PORT8 &= ~0x01; /* pull PORT 3.1 low */ swatch (0.0005); j++; } i=0; j=0;
} }
int0_signal();
but while running the program,i face with syntax error for this .ini file.what is wrong with it? thanks
You've been here before, learn to read the posting tips and use PRE tags when posting source code.
Both previous post answers have pointed to your possible problems. Let me add some info that you should know from the Debugger Manual.
The *ini functions are just lines of script read into the command line one line at a time. The results will appear in the command window. The one line at a time is terminated with a Line Feed/Carriage Return.
As each line is copied and read into the Command Line, the syntax is checked. The read is terminated on the first error detected. The syntax error is shown at the caret(^) on the last line in the command window.
The error could be where you failed to define some expression prior or it could be a simple syntax error. Look at the last line in the command window for the error pointer.
Bradford