Keil Logo

SBIT Assembler Statement

sbit  sfr_symbol = bit-address;

The sbit statement defines a special function register bit:

  • Where

    sfr_symbol is the name of the Special Function Register (SFR) symbol to define.
    bit-address is the address of the SFR bit in the format address^bit_position.

The sbit statement allows you to define SFR bit data in a consistent manner with the C251 compiler. With this statement you may use a generic SFR register definition file for the C251 compiler and the A251 assembler.

sbit  P0_0 = P0^0;
sbit  P0_1 = 0x90^1;
  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.