Hello friends,
Iam new to keil. I want to calculate the period of square wave. For that i should simulate a square wave using SIGNAL function.
I have some problem with writting and initiating the debugger function. Please tell me the steps to be followed to simulate a square wave input.
Thank u.
"I have some problem" is pretty vague, isn't it? How do you expect anyone to help solve those problems with so little to go on?
Debug functions are described in the Manual here: http://www.keil.com/support/man/docs/uv3/uv3_debug_functions.htm
amd Signal functions here: www.keil.com/.../uv3_df_signalfunctions.htm
Which specific parts are you having the trouble with?
Thanx for ur reply.
I copied a signl function from keil website. It is as follows.
signal void square_wave (void) {
while(1) { PORT1 |= 1; swatch(0.0005); PORT1 &= ~1; swatch(0.0005); }} As u can c it should simulate a square wave at P1.0 continuously. But when i invoked the function by typing square_wave(); in the command window, only the first line of the while loop is executing. i.e Port 1's 0th bit is set always. This is my problem. Please help me in resolving it. What is the wrong iam doig in this?
Waiting for your reply. Thank u Manikandan
gtet rid of the Stupid Monkey S***, you may think it makes you look 'cool' but what iy makes you look is totally unprofessional
Erik
Note This message was edited because of rude or abusive language.
Is PORT1.0 in input mode?
Is there really a PORT1.0 on the device that you are using?
Please help me in simulating a square wave input using uvision-3.
Did you actually read any of the preceding posts, or the manual pages?
http://www.keil.com/forum/docs/thread9175.asp#msg42818