sorry for a new thread when there are many threads on this topic but its just that i couldnt find any satisfactory solution : I am using keil evaluation version (small rom less than 2k) and i am getting the improper fixup error for the interrupts . When i comment those interrupt function , i dont get these error. From other threads , i understand that the code starts from 800h in this version and the interrupt is located in 13h and it is not possible to jump in code size : small .
Is there any solution for this or does it mean interrupts cannot be used in this model ? Please help me out here.. struck for several days
Thanks ! Ram
timer_interrupt() interrupt 1 void timer_interrupt() interrupt 1
Erik
. . . int d,mode=0; . . . void delay(int a) { d=a; while(d>0) { } }
You might also want to consider using the keyword volatile.