We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
if, indeed, you are a "Micro Lover" (why are you ashamed of your real name?) WHY HAVE YOU NOT READ "THE BIBLE"
Erik
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".
The Datasheet lists the available SFRs for the particular chip, and describes the purpose of each one...
SFRs which are common to all 8051s may not be specifically listed in the datasheet - they assunme that you are familiar with the basics.
For the basics, see the so-called "bible" for the 8051 - links available here: www.8052.com/.../120112
See also: http://www.8052.com/tutorial
And: http://www.keil.com/books/8051books.asp