Saturday, February 27, 2016

8051 SFR

Special Function Registers (SFRs)


  • Address: 0x80 – 0xFF.
  • There are 21 SFRs in a standard 8051.
  • SFR’s are to control specific functionality of 8051.
  • SFR allows configuring and controlling peripherals.
  • SFRs are accessed as if they were normal Internal RAM.
  • Each SFR has an address and a name.
  • SFRs are grouped in to three categories.
  • IO port SFR: P0, P1, P2, P3.
  • Control SFR: TCON, TMOD, SCON, IE, IP, PSW.
  • Auxiliary SFR:  SP, DPL, DPH, TL0, TL1, TH0, TH1, SBUF, ACC, B.
  • Not all registers are bit addressable.
  • Accessing undefined location results in unexpected behavior.



Related topics:
8051 Registers   |   8051 Program Counter   |   8051 R Registers   |   8051 P Registers   |   8051 Stack   |   8051 Stack Pointer   |   8051 Data Pointer   |   8051 PCON Register   |   8051 TCON Register   |   8051 TMOD Register   |   8051 Timer Registers   |   8051 SCON Register   |   8051 SBUF Register   |   8051 IE Register   |   8051 IP Register   |   8051 PSW Register   |   8051 A Register   |   8051 B Register

List of topics: 8051

No comments:

Post a Comment