• Accessing mapped global variable by reference
    Hello, I'm using the LPC2468 micro controller. I have a struct mapped to the I2C register and in the I2C interrupt I statically access that struct, and everything works fine. I've since broken...
  • 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...
  • How to access global variables of C into Assembly
    Hi Forum Members, I am using Keil uVision2 for P89C51RD2HBP. I want to access the "global variables defined in C" in assembly routine. The format of my program is as below: #include <stdio.h>...
  • Global Variables
    I have had a hard time creating a global variable. In other C progams, all I have to do is just declare it above the Main() function. I am using Dave and the Keil evaluation compiler. I am trying to creat...