can any one tell me the header files that are to be included for the function "SWATCH"
and can it give delay of the order of microseconds???
I think you cannot use the function in your code; if what you mean by 'code' is the C application.
Ms Jereman Hoopek, 13 Lucky Street, Nudge Nudge, FA.
Example The following signal function provides a 10Hz input to PORT3.2. signal void int0_signal (void) { while (1) { PORT3 |= 0x04; * pull PORT 3.2 high */ swatch (0.05); /* wait 50 milliseconds */ PORT3 &= ~0x04;/* pull PORT 3.2 low */ swatch (0.05); /* wait 50 milliseconds */ }
this is the message that i got when i searched for swatch... now by what way can i think that i cant use it in my code?? so i feel i can use it in my source c code
if i am wrong , please correct me }
But haven't you noticed that the sample code is not a C program, but a debugger script?
The debugger can run this code, but the debugger do not need any header file to know what swatch does. That is a good reason why the page does not mention any header file.
The code in question will simulate a 10 Hz signal on one processor pin, so that your code can read the port pin of the simulated processor and be able to find this signal.
The whole text in the help file suggests that it is code entered into the debugger and not for the C application.
Need extra convincing? Just do a search of all the Keil header files, you will not see a match of swatch.
http://www.keil.com/support/man/docs/uv3/uv3_df_diffbtwdbgandc.htm
dudes..............
i didnt notice it properly
THANQ VERY MUCH