sush
Member level 4

hi frnds
m new to uc programming .m working on 89c51 & TASM .i know how to define a byte in RAM. ex. as given below
i want to know how to define a bit in bit adrressable location of RAM. ex. should that also be done as given below.
and also if this code is correct then how to define the difference if the address are same as
please help me out and tell me the way to write the code
thanks
m new to uc programming .m working on 89c51 & TASM .i know how to define a byte in RAM. ex. as given below
Code:
temperature .EQU 40H ;value of temperature
i want to know how to define a bit in bit adrressable location of RAM. ex. should that also be done as given below.
Code:
heater .EQU 50H ;bit to check status of heater on/off
and also if this code is correct then how to define the difference if the address are same as
Code:
temperature .EQU 40H ;value of temperature
Code:
heater .EQU 40H ;bit to check status of heater on/off
please help me out and tell me the way to write the code
thanks