This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can map some bit in a array

Dear all,

I want to access some continus bit,let me can modify the value,such as,
for(i = 0 ; i < 10 ; i++)
{
bit[i] = ?;
}

but you know,the bit var cann't build as a array in keil c51,but build some boolean var with byte will speed down the MCU and more code,Who can give me a good advice and a way,Thanks in advance.

Parents
  • Paddy, your explanation is not at all clear, but it appears that you want the 8051 to do something which it just cannot. There is no "bit pointer" functionality in the 8051 design.
    If you want to access an array, then the assembler code has no choice but to use byte operations to access the required bit.

Reply
  • Paddy, your explanation is not at all clear, but it appears that you want the 8051 to do something which it just cannot. There is no "bit pointer" functionality in the 8051 design.
    If you want to access an array, then the assembler code has no choice but to use byte operations to access the required bit.

Children
No data