Digital Electronics - The 8051 Microcontroller - Discussion
Discussion Forum : The 8051 Microcontroller - General Questions (Q.No. 40)
40.
The special function registers can be referred to by their hex addresses or by their register names.
Discussion:
7 comments Page 1 of 1.
Dhanraj said:
3 years ago
@Janakiram,
Yes, there is bit addressable register.
A or ACC
B
DPL
DPH
IE
IP
P0
P1
P2
P3
PCON
PSW
SCON
SBUF
SP
TMOD
TCON
TL0
TH0
TL1
TH1
Yes, there is bit addressable register.
A or ACC
B
DPL
DPH
IE
IP
P0
P1
P2
P3
PCON
PSW
SCON
SBUF
SP
TMOD
TCON
TL0
TH0
TL1
TH1
Janakiram said:
6 years ago
In sfr, there is register? Please tell me.
Chandu said:
7 years ago
Thanks for explaining @Pankaj.
Puja chakraborty said:
8 years ago
Thanks @Pankaj.
Pankaj said:
9 years ago
It's true,
Each sfr is stored at fixed memory location (0x80h to 0xFFh) in internal memory of 8051. So we can access them by using sfr names or by the hex value of its memory location. After compilation each sfr name is converted into its hex address value.
E.g.
Mov A, #0FFh is can be written as,
Mov 0E0h, #0FFh.
Also you can check lst (file extension) file in your project directory.
Each sfr is stored at fixed memory location (0x80h to 0xFFh) in internal memory of 8051. So we can access them by using sfr names or by the hex value of its memory location. After compilation each sfr name is converted into its hex address value.
E.g.
Mov A, #0FFh is can be written as,
Mov 0E0h, #0FFh.
Also you can check lst (file extension) file in your project directory.
Anjali verma said:
10 years ago
Can anyone explain it?
M janardhana chari said:
1 decade ago
Why it is true?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers