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

Help About SFRs (Special Function Registers)

Hello

i m using Assembly, and I need the help about SFRs of 89C51

What is the purpose of SFRs
How can i control these registers.
and some more basic help about SFRs

any link or source code

Parents Reply Children
  • Special Function Registers are just special memory cells that not just store values but that have the bits mapped to some hardware.

    The SFR may map to receive/transmit register for an UART, or the I/O pins of a port or counter value and status bits of a timer.

    You use them similar to a memory cell with the addition that they must be declared as volatile - they can change their contents between two accesses.

    What you do with them is something you have to figure out yourself, based on sample code, datasheets and "the bible".