- Joined
- Jan 22, 2008
- Messages
- 53,348
- Helped
- 14,796
- Reputation
- 29,879
- Reaction score
- 14,332
- Trophy points
- 1,393
- Location
- Bochum, Germany
- Activity points
- 302,074
I just noticed another fault in your code. Interrupt functions must not use a return statement, they have an implicit return from interrupt (RETI) at the function end. Review the compiler user manual and example programs.
Calling a subroutine (function) from interrupt is possible but not suggested with 8051 due to limited available stack space. You can't call another interrupt function.
Calling a subroutine (function) from interrupt is possible but not suggested with 8051 due to limited available stack space. You can't call another interrupt function.