Keil Logo Arm Logo

A251 User's Guide

SBIT Assembler Statement

Arguments
sbit  sfr_symbol = bit-address;
Description

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.

Example
sbit  P0_0 = P0^0;
sbit  P0_1 = 0x90^1;

arm-logo-small

Keil logo
Important information

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