Technical Support

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 08, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure