We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i still have problem in the code
i think it is startup.a51 and fix but still proble when run on cpu if it does not do what i say in code
when i build it gives a message
** error C138 interupt can not recieive or return a value
but i do not interupt i do not clik the stop build button
the proj is needed and i now worry big in my pants
plz send code
"error C138 interupt can not recieive or return a value"
That message is probably trying to tell you that you have defined your interrupt function with a parameter and/or a return value.
"trying to tell you that you have defined your interrupt function with a parameter and/or a return value"
Not just any old parameter - but a Variable Argument List!!
AND a return value!!
:-0
i have little problem in my code but it is now late!
you have email i send code you fix my code
You have a HUGE problem, not in your code per se, but in your understanding of the basic concepts using C51 and the '51.
"you fix my code" will not help you any, until you have the basic concepts understood there is no hope.
Erik
why you do not help???
i know programms very good nad learned programing at colege but have little error in code
you do not know how to fix???
you think me stupid or not good programer???
i send you code for you to fix plz
"why you do not help???"
You don't need more help beyond what you've already been told. Go back and read the posts. Then go back and read them again, and again, and again, ...
Then fix your code.
What environment has a main that takes the following parameter types???
int main( integer argc, char ***argv[] )
A huge number of stars on that argv parameter...
"A huge number of stars on that argv parameter..."
A veritable pant-filling number of stars!
there is no problem with the stars
compile has no errors for the starts!!!
why you not gve good help???
has any people help now plz?
"compile has no errors for the stars!!!"
Of course there isn't - it is perfectly valid 'C' syntax.
Whether it will actually work is an entirely different matter...
Are you sure that whatever will call main() is really going to pass it an array of pointers-to-pointers-to-pointers...?!
"there is no problem with the stars"
Silly me.
"why you not gve good help???"
You already have good help:
You have been told what an interrupt is, and it has been explained to you that an interrupt function cannot take parameters, and cannot return a value. You have been shown the Manual pages where you can study this further for yourself
So the answer is simple: you need to remove the parameters and the return value.
Or maybe main shouldn't be an interrupt function at all...
"i send you code for you to fix plz"
If you want coding work done for you, you will have to pay for it.
If you want it done in a hurry, you will have to pay a premium.
http://www.keil.com/condb/search.asp
// while (argc<>0) compiler thinks is bad
Yes, the Keil compiler is unfortunately limited to compiling just C, rather than bits of syntax selected from any other programming language.
(Posting just for the sake of completeness, I suppose. Or maybe I just don't want to miss out on the dogpile.)
And another bit of non-C:
argc := argc - 1; }
is this the usual "my wi... eh compiler does not understand me