• Problem with global variables and Interrupt Service Routines
    Hi! I've many interrupt service routines on my current project! But I didn't succeed in passing data between the main function and the ISRs! I declared global variables (no difference if static...
  • Interrupt and global variable
    Hello! I've an Timer-Interrupt Routine (timer 3 with reload) with will served every 10 ms! In this Interrupt-Routine, I send 2 Messages via the CAN Interface. Now, I send the second message straight...
  • Global Variable.
    In my project I have two files. as follows File A int x; main() { x=2; } File B extern int x; { x=4; } When I compile both files independatly, there is no error. When I link both modules...
  • Global variable
    In my project I am using four source code files. There is one variable, which is used in all four files. When I declared this variable in one file and compiled the file, the compilation was successful...
  • Can keil optimize the interrupt routines?
    When I set optimize(9,size) to a interrupt function, which should be optimize for "Common Block Subroutines", but it wasn't! All interrupt funtions contain following duplicate blocks(see BOLD): ...