Call procedure in any procedure error

General discussion on mikroPascal PRO for 8051.
Post Reply
Author
Message
ilham
Posts: 2
Joined: 19 Apr 2010 12:17

Call procedure in any procedure error

#1 Post by ilham » 02 Aug 2011 16:00

I want to ask, I used MikroPascal for 8051 V2.0, Why if I make some function or procedure and I call it in other procedure always rising error when I compiled it? I make it with global declaration variable when I make it..
thank you....

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Call procedure in any procedure error

#2 Post by janko.kaljevic » 03 Aug 2011 16:57

Hello,

Please can you post your code that demonstrates this.

Best regards.

ilham
Posts: 2
Joined: 19 Apr 2010 12:17

Re: Call procedure in any procedure error

#3 Post by ilham » 04 Aug 2011 14:05

I call the procedure from any procedure and from procedure with interrupt handler...
it rises the error like this statements: the procedure is call in two thread bla bla bla....
I think, I don't finish to read the help yet..... :?

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Call procedure in any procedure error

#4 Post by janko.kaljevic » 11 Aug 2011 15:23

Hello,

You can not call same procedure from main program and interrupt routine.
This is due to hardware limitations of the chip and these kind of procedure calls will be forbidden by compiler.
Please refer to Help file for more details.

Regards.

Post Reply

Return to “mikroPascal PRO for 8051 General”