Shop OBEX P1 Docs P2 Docs Learn Events
Bit manipulaton with SX/B — Parallax Forums

Bit manipulaton with SX/B

q-bertq-bert Posts: 3
edited 2011-06-14 04:13 in General Discussion
Hi!

I'm using the SX28 with the SX-Key v3.3.0 programming tool.
I have goen through the PracticalSXB.pdf, but I'm having trouble figuring out how to do this:

Put RB.6 and RB.7 as the first two bits in a variable.

I tried something like

Variable.0 = RB.6
Variable.1 = RB.7

Any help would be greatly appreciated.

Thanks,

Comments

  • BeanBean Posts: 8,129
    edited 2011-06-14 04:13
    That should work, but you would need to set the variable to zero first to clear all the other bits.

    Variable = 0
    Variable.0 = RB.6
    Variable.1 = RB.7

    Bean
Sign In or Register to comment.