This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

24 bit addressing required in keil for DP 8051

Hi,

How to use 24 bit addressing in keil for DP 8051.

We want it in C language.

Parents
  • can we declare a 24 bit address location as a register, similarly as we do in 8 bit address registers.

    Ex. #define REG8 (*((volatile unsigned long int xdata *)(x))) // were REG8 is an 8 bit register and x is the 24 bit address

    will this work when x is a 24bit adddress loaction?

Reply
  • can we declare a 24 bit address location as a register, similarly as we do in 8 bit address registers.

    Ex. #define REG8 (*((volatile unsigned long int xdata *)(x))) // were REG8 is an 8 bit register and x is the 24 bit address

    will this work when x is a 24bit adddress loaction?

Children