But I want to change Device Id when I get command of change Device
Address.
How should I do it?
Regards,
Abhijeet R. Mudgal.
Read-Only
Author Andy Neil
Posted 20-Feb-2009 10:03 GMT
Toolset None
Textbook time
Andy Neil
This is standard, textbook 'C' - nothing specifically to do with
the 8051 or Keil.
#define gives a definition that is fixed at compile time;
IF you want it to be changeable at run time, you will need to use
a variable.
Read-Only
Author aamir khan
Posted 20-Feb-2009 10:08 GMT
Toolset C51
RE: Changing #define
aamir khan
u cant do it like that
coz DEVICE_ID is replaced by 0x32 where ever u hve written it by
compiler
if u wana assign DEVICE_ID different Values that declear it as
variable in user program
not in this way
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.