|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Are 32-bit SFRs Supported?Information in this article applies to:
QUESTIONI'm using a custom 8051 that has a floating-point coprocessor. I need to access 32-bit numbers stored in the SFR space of the 8051. Does the C51 compiler do this? ANSWERThere is no support in the C51 compiler for 32-bit objects stored in the SFR space of the 8051. There is support for 8-bit objects (use SFR) and 16-bit objects (use SFR16). To access a 32-bit object, you will have to use either 4 SFR accesses or 2 SFR16 accesses as shown below:
or
MORE INFORMATION
SEE ALSO
Last Reviewed: Thursday, February 25, 2021 | ||||||||||
|
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.