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???
Read The Free Manual
Look in the help file UV3.CHM
Ms Jereman Hoopek, 13 Lucky Street, Nudge Nudge, FA.
dude.... in my help files, only the usage of the function with an example is given!!!!!!!!!!!!!
if u know that,please tell me
Did your help file indicate that swatch was a function you could call from your C program, or did you find the information while reading how to define debugger scripts for simulating I/O when debugging a simulated target?
no........... when i searched for the swatch function in my help file, the details abt the function including the syntax and an example with that function are given... but the header file for that funtion was nowhere given.. i doubt whether my help files contain the details abt the function. mine is an evaluation version
What help page? What context?
Maybe a little deduction is in order.
You look at the help file and you can easily deduce some details.
FAIK the help files for eval and full are the same.
Start here: http://www.keil.com/support/man/docs/uv3/uv3_debug_functions.htm
and read on...
That is correct.
You also have access to the online copies on this very website:
http://www.keil.com/support/man_c51.htm
but i think i can use that function in my code
I think you cannot use the function in your code; if what you mean by 'code' is the C application.
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