• Assign a global variable to a register
    Hello, in my application I use often a global variable. Since this variable is use in lots of functions, I'd like to assign it to a specific register (like DR28). It is possible? If yes, how can I...
  • Reading a memory location into a C varaible
    Hi, I need to read a memory location (SRAM)and load the value into a variable of type integer in my 'C' code. How do I achieve the above mentioned problem in C? Do I need to do some kind of translations...
  • Generalized approach for getting bits of varaibles declared As BDATA
    Hello all, I have been pondering upon getting each bit of a variable (e.g. declared as char) using a for loop char bdata Char1; bit y; for(x=0; x<7; x++) y = Char1^x; My question is ...
  • 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...
  • 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...