I have executed all recommendations specified in the reference http://www.keil.com/support/docs/3104.htm My user code is written on C51 and I have not found other way how to insert call to USER_ROUTINE after timer's handler. Function USER_ROUTINE is declared in the module on С51 as function of interruption with a vector 31. The code should be:
//**************************************** //************* Conf_tny.A51 ************* //**************************************** ... EXTRN CODE (USER_ROUTINE) ;;; Inserted by me ... USING 0 ; Registerbank 0 for following code IF (TIMESHARING == 0) ; Insert for SiLABS SFR Paging: IF (CPU_IDLE_CODE) SETB ?RTX_ISR_SIG ENDIF JMP USER_ROUTINE ;;; Inserted by me RETI //**************************************** //**************************************** //************** user_code.c ************* //**************************************** void USER_ROUTINE () interrupt 31 { ... user's code ... } /****************************************