|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Bit Addressable ArraysInformation in this article applies to:
QUESTIONI have declared an array in bdata and I wish to use a loop to access each bit and assign it to a flag. I have written the following code but it doesn't work. What am I doing wrong?
ANSWERYou cannot use the "^" character to access bits unless it is an sbit declaration. Outside of an sbit declaration, it is the Exclusive OR operator. Also you cannot use a variable after the "^" character when accessing bits, it must be a constant. There are two solutions to this problem.
MORE INFORMATION
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.