Keil Logo

C251: USING EXTENDED BIT AREAS

QUESTION

How do I access the 251's extended bits in C?

ANSWER

You may access the extended bit area of the 251 using C251 version 2. Support for the extended bit area is not provided in C251 version 1.x. You can easily declare and use bits with the ebdata type as shown below.

void main (void)
{
bit ebdata bbb;   /* declare an extended bit-area bit */

bbb = 1;   /* use an extended bit-area bit */
}

To access a global extended bit declared in another file, use the following declaration:

extern bit ebdata b1;

void main (void)
{
b1 = 0;
}

Last Reviewed: Saturday, May 8, 2004


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.