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
"when i build it gives a message
** error C138 interupt can not recieive or return a value"
The first thing to do when you get such a message is to read its description in the Manual:
"Description: An interrupt function was defined with one or more formal parameters or with a return value. Interrupt functions may not contain invocation parameters or return values." http://www.keil.com/support/man/docs/c51/c51_c138.htm
So, let's have a look at your code:
int main( integer argc, char ***argv[] ) interrupt 10
The interrupt keyword defines the funcion to be an interrupt function: http://www.keil.com/support/man/docs/c51/c51_le_interruptfuncs.htm
Clearly your code gives the function both a return value and some parameters, and you can't do that - just as the message says!
"the proj is needed and i now worry big in my pants"
Yes, I'm afraid you do have a very big worry here indeed! You clearly have a lot of basic study to do about embedded programming in general and the Keil tools in particular...