Keil Logo

C51: SUPPORT OF NON-STANDARD CHIP FEATURES


Information in this article applies to:

  • C51 All Versions

QUESTION

Are non-standard features in various 8051-compatible devices supported in C, assembly, or both?

ANSWER

Both. Most chip-specific features are implemented through the addition of special function registers (SFRs). C header files, included for the most commonly used processor derivatives, define the SFRs for that derivative.

It is easy to create your own header files for new chips. In most cases, using the extended features of these chips is as simple as adding a single line of code to this header file. For example, the following line of code declares the SFR for the 8051's port 1:

sfr P1 = 0x90;

Adding register definitions is almost identical in assembly language.

MORE INFORMATION

SEE ALSO

Last Reviewed: Friday, July 15, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.